diff options
author | James Morris <jmorris@namei.org> | 2011-03-15 18:41:17 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2011-03-15 18:41:17 -0400 |
commit | a002951c97ff8da49938c982a4c236bf2fafdc9f (patch) | |
tree | d43e7885ea7376df0a47a0fc8ceca66dc5bfa357 /kernel/sysctl.c | |
parent | 521cb40b0c44418a4fd36dc633f575813d59a43d (diff) | |
parent | c151694b2c48d956ac8c8c59c6927f89cc29ef70 (diff) |
Merge branch 'next' into for-linus
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 4eed0af5d144..4cb152574433 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -1690,13 +1690,8 @@ static int test_perm(int mode, int op) | |||
1690 | 1690 | ||
1691 | int sysctl_perm(struct ctl_table_root *root, struct ctl_table *table, int op) | 1691 | int sysctl_perm(struct ctl_table_root *root, struct ctl_table *table, int op) |
1692 | { | 1692 | { |
1693 | int error; | ||
1694 | int mode; | 1693 | int mode; |
1695 | 1694 | ||
1696 | error = security_sysctl(table, op & (MAY_READ | MAY_WRITE | MAY_EXEC)); | ||
1697 | if (error) | ||
1698 | return error; | ||
1699 | |||
1700 | if (root->permissions) | 1695 | if (root->permissions) |
1701 | mode = root->permissions(root, current->nsproxy, table); | 1696 | mode = root->permissions(root, current->nsproxy, table); |
1702 | else | 1697 | else |