pal_security.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* -*- mode:c; c-file-style:"k&r"; c-basic-offset: 4; tab-width:4; indent-tabs-mode:nil; mode:auto-fill; fill-column:78; -*- */
  2. /* vim: set ts=4 sw=4 et tw=78 fo=cqt wm=0: */
  3. /* Copyright (C) 2014 OSCAR lab, Stony Brook University
  4. This file is part of Graphene Library OS.
  5. Graphene Library OS is free software: you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation, either version 3 of the
  8. License, or (at your option) any later version.
  9. Graphene Library OS is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. #ifndef PAL_SECURITY_H
  16. #define PAL_SECURITY_H
  17. #include "pal.h"
  18. struct r_debug;
  19. extern struct pal_sec_info {
  20. const char * pal_name;
  21. unsigned int domain_id;
  22. const char * pipe_prefix;
  23. int rand_gen;
  24. unsigned short mcast_port;
  25. PAL_HANDLE mcast_handle;
  26. void (*_dl_debug_state) (void);
  27. struct r_debug * _r_debug;
  28. } pal_sec_info;
  29. #define GRAPHENE_TMPDIR "/tmp/graphene"
  30. #define GRAPHENE_TMPDIR_LEN (13)
  31. #define GRAPHENE_PIPEDIR GRAPHENE_TMPDIR "/pipes"
  32. #define GRAPHENE_PIPEDIR_LEN (GRAPHENE_TMPDIR_LEN + 6)
  33. #define MCAST_GROUP "239.0.0.1"
  34. #endif /* PAL_SECURITY_H */