blob: f6d7242322613f2ed01f91f2c0dec56f284d99b4 [file] [log] [blame]
Joshua Brindle13cd4c82008-08-19 15:30:36 -04001#ifndef _POLICY_H_
2#define _POLICY_H_
3
4/* Private definitions used internally by libselinux. */
5
William Robertsd5947252016-09-21 16:59:27 -07006/*
7 * xattr name for SELinux attributes.
8 * This may have been exported via Kernel uapi header.
9 */
10#ifndef XATTR_NAME_SELINUX
Joshua Brindle13cd4c82008-08-19 15:30:36 -040011#define XATTR_NAME_SELINUX "security.selinux"
William Robertsd5947252016-09-21 16:59:27 -070012#endif
Joshua Brindle13cd4c82008-08-19 15:30:36 -040013
14/* Initial length guess for getting contexts. */
15#define INITCONTEXTLEN 255
16
Daniel J Walshe3cab992011-05-03 14:06:12 -040017/* selinux file system type */
18#define SELINUXFS "selinuxfs"
19
Joshua Brindle13cd4c82008-08-19 15:30:36 -040020/* selinuxfs magic number */
21#define SELINUX_MAGIC 0xf97cff8c
22
23/* Preferred selinux mount location */
Daniel J Walshe3cab992011-05-03 14:06:12 -040024#define SELINUXMNT "/sys/fs/selinux"
25#define OLDSELINUXMNT "/selinux"
Joshua Brindle13cd4c82008-08-19 15:30:36 -040026
27/* selinuxfs mount point */
28extern char *selinux_mnt;
29
30#define FILECONTEXTS "/etc/security/selinux/file_contexts"
31
32#define DEFAULT_POLICY_VERSION 15
33
34#endif