apparmor.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * AppArmor security module
  3. *
  4. * This file contains AppArmor basic global
  5. *
  6. * Copyright (C) 1998-2008 Novell/SUSE
  7. * Copyright 2009-2017 Canonical Ltd.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation, version 2 of the
  12. * License.
  13. */
  14. #ifndef __APPARMOR_H
  15. #define __APPARMOR_H
  16. #include <linux/types.h>
  17. /*
  18. * Class of mediation types in the AppArmor policy db
  19. */
  20. #define AA_CLASS_ENTRY 0
  21. #define AA_CLASS_UNKNOWN 1
  22. #define AA_CLASS_FILE 2
  23. #define AA_CLASS_CAP 3
  24. #define AA_CLASS_NET 4
  25. #define AA_CLASS_RLIMITS 5
  26. #define AA_CLASS_DOMAIN 6
  27. #define AA_CLASS_MOUNT 7
  28. #define AA_CLASS_PTRACE 9
  29. #define AA_CLASS_SIGNAL 10
  30. #define AA_CLASS_LABEL 16
  31. #define AA_CLASS_LAST AA_CLASS_LABEL
  32. /* Control parameters settable through module/boot flags */
  33. extern enum audit_mode aa_g_audit;
  34. extern bool aa_g_audit_header;
  35. extern bool aa_g_debug;
  36. extern bool aa_g_hash_policy;
  37. extern bool aa_g_lock_policy;
  38. extern bool aa_g_logsyscall;
  39. extern bool aa_g_paranoid_load;
  40. extern unsigned int aa_g_path_max;
  41. #endif /* __APPARMOR_H */