aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sysctl.c5
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
1692int sysctl_perm(struct ctl_table_root *root, struct ctl_table *table, int op) 1692int 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