diff options
Diffstat (limited to 'kernel')
-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 51054fea5d99..40245d697602 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -1683,13 +1683,8 @@ static int test_perm(int mode, int op) | |||
1683 | 1683 | ||
1684 | int sysctl_perm(struct ctl_table_root *root, struct ctl_table *table, int op) | 1684 | int sysctl_perm(struct ctl_table_root *root, struct ctl_table *table, int op) |
1685 | { | 1685 | { |
1686 | int error; | ||
1687 | int mode; | 1686 | int mode; |
1688 | 1687 | ||
1689 | error = security_sysctl(table, op & (MAY_READ | MAY_WRITE | MAY_EXEC)); | ||
1690 | if (error) | ||
1691 | return error; | ||
1692 | |||
1693 | if (root->permissions) | 1688 | if (root->permissions) |
1694 | mode = root->permissions(root, current->nsproxy, table); | 1689 | mode = root->permissions(root, current->nsproxy, table); |
1695 | else | 1690 | else |