diff options
author | Lucian Adrian Grijincu <lucian.grijincu@gmail.com> | 2011-02-01 11:44:56 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2011-02-01 11:54:02 -0500 |
commit | 4916ca401e3051dad326ddd69765bd0e3f32fb9b (patch) | |
tree | 593778babcd691a498a909a5eaf462f29d241cf6 /security/capability.c | |
parent | 8e6c96935fcc1ed3dbebc96fddfef3f2f2395afc (diff) |
security: remove unused security_sysctl hook
The only user for this hook was selinux. sysctl routes every call
through /proc/sys/. Selinux and other security modules use the file
system checks for sysctl too, so no need for this hook any more.
Signed-off-by: Lucian Adrian Grijincu <lucian.grijincu@gmail.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'security/capability.c')
-rw-r--r-- | security/capability.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/security/capability.c b/security/capability.c index 383d14dc12ef..85b67c8632df 100644 --- a/security/capability.c +++ b/security/capability.c | |||
@@ -12,11 +12,6 @@ | |||
12 | 12 | ||
13 | #include <linux/security.h> | 13 | #include <linux/security.h> |
14 | 14 | ||
15 | static int cap_sysctl(ctl_table *table, int op) | ||
16 | { | ||
17 | return 0; | ||
18 | } | ||
19 | |||
20 | static int cap_syslog(int type) | 15 | static int cap_syslog(int type) |
21 | { | 16 | { |
22 | return 0; | 17 | return 0; |
@@ -881,7 +876,6 @@ void __init security_fixup_ops(struct security_operations *ops) | |||
881 | set_to_cap_if_null(ops, capable); | 876 | set_to_cap_if_null(ops, capable); |
882 | set_to_cap_if_null(ops, quotactl); | 877 | set_to_cap_if_null(ops, quotactl); |
883 | set_to_cap_if_null(ops, quota_on); | 878 | set_to_cap_if_null(ops, quota_on); |
884 | set_to_cap_if_null(ops, sysctl); | ||
885 | set_to_cap_if_null(ops, syslog); | 879 | set_to_cap_if_null(ops, syslog); |
886 | set_to_cap_if_null(ops, settime); | 880 | set_to_cap_if_null(ops, settime); |
887 | set_to_cap_if_null(ops, vm_enough_memory); | 881 | set_to_cap_if_null(ops, vm_enough_memory); |