huangcm
2024-08-23 d76fb8c8c6d079a3cee81da7072347dcb8bbbc70
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _POLICY_H_
#define _POLICY_H_
 
/* Private definitions used internally by libselinux. */
 
/*
 * xattr name for SELinux attributes.
 * This may have been exported via Kernel uapi header.
 */
#ifndef XATTR_NAME_SELINUX
#define XATTR_NAME_SELINUX "security.selinux"
#endif
 
/* Initial length guess for getting contexts. */
#define INITCONTEXTLEN 255
 
/* selinux file system type */
#define SELINUXFS "selinuxfs"
 
/* selinuxfs magic number */
#define SELINUX_MAGIC 0xf97cff8c
 
/* Preferred selinux mount location */
#define SELINUXMNT "/sys/fs/selinux"
#define OLDSELINUXMNT "/selinux"
 
/* selinuxfs mount point */
extern char *selinux_mnt;
 
#define FILECONTEXTS "/etc/security/selinux/file_contexts"
 
#define DEFAULT_POLICY_VERSION 15
 
#endif