pal_security.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #define PATH_MAX 80
  19. #define PIPE_MAX 32
  20. struct r_debug;
  21. extern struct pal_sec_info {
  22. unsigned int domain_id;
  23. char pipe_prefix[PIPE_MAX];
  24. void * user_addr_base;
  25. int rand_gen;
  26. unsigned short mcast_port;
  27. void (*_dl_debug_state) (void);
  28. struct r_debug * _r_debug;
  29. } pal_sec_info;
  30. #define GRAPHENE_TEMPDIR "/tmp/graphene"
  31. #define GRAPHENE_PIPEDIR GRAPHENE_TEMPDIR "/pipes"
  32. #define PROC_INIT_FD 3
  33. #define MCAST_GROUP "239.0.0.1"
  34. #endif /* PAL_SECURITY_H */