Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 1 | #ifndef _POLICY_H_ |
| 2 | #define _POLICY_H_ |
| 3 | |
| 4 | /* Private definitions used internally by libselinux. */ |
| 5 | |
| 6 | /* xattr name for SELinux attributes. */ |
| 7 | #define XATTR_NAME_SELINUX "security.selinux" |
| 8 | |
| 9 | /* Initial length guess for getting contexts. */ |
| 10 | #define INITCONTEXTLEN 255 |
| 11 | |
| 12 | /* selinuxfs magic number */ |
| 13 | #define SELINUX_MAGIC 0xf97cff8c |
| 14 | |
Stephen Smalley | d10c343 | 2012-11-05 11:49:35 -0500 | [diff] [blame] | 15 | /* Preferred selinuxfs mount point directory paths. */ |
| 16 | #define SELINUXMNT "/sys/fs/selinux" |
| 17 | #define OLDSELINUXMNT "/selinux" |
| 18 | |
| 19 | /* selinuxfs filesystem type string. */ |
| 20 | #define SELINUXFS "selinuxfs" |
| 21 | |
| 22 | /* selinuxfs mount point determined at runtime */ |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 23 | extern char *selinux_mnt; |
| 24 | |
Stephen Smalley | d10c343 | 2012-11-05 11:49:35 -0500 | [diff] [blame] | 25 | /* First version of policy supported in mainline Linux. */ |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 26 | #define DEFAULT_POLICY_VERSION 15 |
| 27 | |
| 28 | #endif |