Merge branch 'next' into for-linus

This commit is contained in:
James Morris
2011-03-16 09:41:17 +11:00
85 changed files with 1549 additions and 712 deletions

View File

@@ -1690,13 +1690,8 @@ static int test_perm(int mode, int op)
int sysctl_perm(struct ctl_table_root *root, struct ctl_table *table, int op)
{
int error;
int mode;
error = security_sysctl(table, op & (MAY_READ | MAY_WRITE | MAY_EXEC));
if (error)
return error;
if (root->permissions)
mode = root->permissions(root, current->nsproxy, table);
else