diff options
author | Eric Paris <eparis@redhat.com> | 2008-04-01 13:24:09 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-04-18 20:26:13 +1000 |
commit | 832cbd9aa1293cba57d06571f5fc8f0917c672af (patch) | |
tree | 85b1b550c71acde04294b69c08176adbaaf8641b /security/selinux/include | |
parent | 0e55a004b58847c53e48d846b9a4570b1587c382 (diff) | |
download | linux-stable-832cbd9aa1293cba57d06571f5fc8f0917c672af.tar.gz linux-stable-832cbd9aa1293cba57d06571f5fc8f0917c672af.tar.bz2 linux-stable-832cbd9aa1293cba57d06571f5fc8f0917c672af.zip |
SELinux: turn mount options strings into defines
Convert the strings used for mount options into #defines rather than
retyping the string throughout the SELinux code.
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/include')
-rw-r--r-- | security/selinux/include/security.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h index dd70aa084637..bc823ef70a12 100644 --- a/security/selinux/include/security.h +++ b/security/selinux/include/security.h @@ -41,6 +41,11 @@ #define ROOTCONTEXT_MNT 0x04 #define DEFCONTEXT_MNT 0x08 +#define CONTEXT_STR "context=" +#define FSCONTEXT_STR "fscontext=" +#define ROOTCONTEXT_STR "rootcontext=" +#define DEFCONTEXT_STR "defcontext=" + struct netlbl_lsm_secattr; extern int selinux_enabled; |