projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47a93a5
)
SELinux: loosen DAC perms on reading policy
author
Eric Paris
<eparis@redhat.com>
Thu, 16 Feb 2012 20:08:39 +0000
(15:08 -0500)
committer
Eric Paris
<eparis@redhat.com>
Mon, 9 Apr 2012 16:22:36 +0000
(12:22 -0400)
There is no reason the DAC perms on reading the policy file need to be root
only. There are selinux checks which should control this access.
Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/selinuxfs.c
patch
|
blob
|
blame
|
history
diff --git
a/security/selinux/selinuxfs.c
b/security/selinux/selinuxfs.c
index d6ae2d407307e4747891b809061ff1ceeb4ffe68..f4b5a0baaec4d9597b03e656e3b5fb1b9b4302e2 100644
(file)
--- a/
security/selinux/selinuxfs.c
+++ b/
security/selinux/selinuxfs.c
@@
-1832,7
+1832,7
@@
static int sel_fill_super(struct super_block *sb, void *data, int silent)
[SEL_REJECT_UNKNOWN] = {"reject_unknown", &sel_handle_unknown_ops, S_IRUGO},
[SEL_DENY_UNKNOWN] = {"deny_unknown", &sel_handle_unknown_ops, S_IRUGO},
[SEL_STATUS] = {"status", &sel_handle_status_ops, S_IRUGO},
- [SEL_POLICY] = {"policy", &sel_policy_ops, S_IRU
SR
},
+ [SEL_POLICY] = {"policy", &sel_policy_ops, S_IRU
GO
},
/* last one */ {""}
};
ret = simple_fill_super(sb, SELINUX_MAGIC, selinux_files);