Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame] | 1 | #ifndef _POLICY_H_ |
| 2 | #define _POLICY_H_ |
| 3 | |
| 4 | /* Private definitions used internally by libselinux. */ |
| 5 | |
William Roberts | d594725 | 2016-09-21 16:59:27 -0700 | [diff] [blame] | 6 | /* |
| 7 | * xattr name for SELinux attributes. |
| 8 | * This may have been exported via Kernel uapi header. |
| 9 | */ |
| 10 | #ifndef XATTR_NAME_SELINUX |
Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame] | 11 | #define XATTR_NAME_SELINUX "security.selinux" |
William Roberts | d594725 | 2016-09-21 16:59:27 -0700 | [diff] [blame] | 12 | #endif |
Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame] | 13 | |
| 14 | /* Initial length guess for getting contexts. */ |
| 15 | #define INITCONTEXTLEN 255 |
| 16 | |
Daniel J Walsh | e3cab99 | 2011-05-03 14:06:12 -0400 | [diff] [blame] | 17 | /* selinux file system type */ |
| 18 | #define SELINUXFS "selinuxfs" |
| 19 | |
Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame] | 20 | /* selinuxfs magic number */ |
| 21 | #define SELINUX_MAGIC 0xf97cff8c |
| 22 | |
| 23 | /* Preferred selinux mount location */ |
Daniel J Walsh | e3cab99 | 2011-05-03 14:06:12 -0400 | [diff] [blame] | 24 | #define SELINUXMNT "/sys/fs/selinux" |
| 25 | #define OLDSELINUXMNT "/selinux" |
Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame] | 26 | |
| 27 | /* selinuxfs mount point */ |
| 28 | extern char *selinux_mnt; |
| 29 | |
| 30 | #define FILECONTEXTS "/etc/security/selinux/file_contexts" |
| 31 | |
| 32 | #define DEFAULT_POLICY_VERSION 15 |
| 33 | |
| 34 | #endif |