diff options
author | Eric Paris <eparis@redhat.com> | 2008-02-28 12:58:40 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-04-18 06:26:06 -0400 |
commit | b0c636b99997c8594da6a46e166ce4fcf6956fda (patch) | |
tree | 16308f0324846cd8c19180b6a45793268dd16f50 /security/selinux/include/security.h | |
parent | d4ee4231a3a8731576ef0e0a7e1225e4fde1e659 (diff) |
SELinux: create new open permission
Adds a new open permission inside SELinux when 'opening' a file. The idea
is that opening a file and reading/writing to that file are not the same
thing. Its different if a program had its stdout redirected to /tmp/output
than if the program tried to directly open /tmp/output. This should allow
policy writers to more liberally give read/write permissions across the
policy while still blocking many design and programing flaws SELinux is so
good at catching today.
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Reviewed-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/include/security.h')
-rw-r--r-- | security/selinux/include/security.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h index 44e12ec88090..315b4ec1e12a 100644 --- a/security/selinux/include/security.h +++ b/security/selinux/include/security.h | |||
@@ -48,11 +48,13 @@ extern int selinux_mls_enabled; | |||
48 | /* Policy capabilities */ | 48 | /* Policy capabilities */ |
49 | enum { | 49 | enum { |
50 | POLICYDB_CAPABILITY_NETPEER, | 50 | POLICYDB_CAPABILITY_NETPEER, |
51 | POLICYDB_CAPABILITY_OPENPERM, | ||
51 | __POLICYDB_CAPABILITY_MAX | 52 | __POLICYDB_CAPABILITY_MAX |
52 | }; | 53 | }; |
53 | #define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1) | 54 | #define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1) |
54 | 55 | ||
55 | extern int selinux_policycap_netpeer; | 56 | extern int selinux_policycap_netpeer; |
57 | extern int selinux_policycap_openperm; | ||
56 | 58 | ||
57 | int security_load_policy(void * data, size_t len); | 59 | int security_load_policy(void * data, size_t len); |
58 | 60 | ||