• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 /* selinux file system type */
13 #define SELINUXFS "selinuxfs"
14 
15 /* selinuxfs magic number */
16 #define SELINUX_MAGIC 0xf97cff8c
17 
18 /* Preferred selinux mount location */
19 #define SELINUXMNT "/sys/fs/selinux"
20 #define OLDSELINUXMNT "/selinux"
21 
22 /* selinuxfs mount point */
23 extern char *selinux_mnt;
24 
25 #define FILECONTEXTS "/etc/security/selinux/file_contexts"
26 
27 #define DEFAULT_POLICY_VERSION 15
28 
29 #endif
30