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 /kernel/sysctl.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 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index ae5cbb1e3ced..e24254c27eaf 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -1691,13 +1691,8 @@ static int test_perm(int mode, int op) | |||
1691 | 1691 | ||
1692 | int sysctl_perm(struct ctl_table_root *root, struct ctl_table *table, int op) | 1692 | int sysctl_perm(struct ctl_table_root *root, struct ctl_table *table, int op) |
1693 | { | 1693 | { |
1694 | int error; | ||
1695 | int mode; | 1694 | int mode; |
1696 | 1695 | ||
1697 | error = security_sysctl(table, op & (MAY_READ | MAY_WRITE | MAY_EXEC)); | ||
1698 | if (error) | ||
1699 | return error; | ||
1700 | |||
1701 | if (root->permissions) | 1696 | if (root->permissions) |
1702 | mode = root->permissions(root, current->nsproxy, table); | 1697 | mode = root->permissions(root, current->nsproxy, table); |
1703 | else | 1698 | else |