mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
Merge branch 'master' of git://git.infradead.org/users/eparis/selinux into next
This commit is contained in:
commit
fe3fa43039
52 changed files with 594 additions and 323 deletions
|
@ -1685,13 +1685,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue