Skip to content

Commit

Permalink
proc_sys_permission() is OK in RCU mode
Browse files Browse the repository at this point in the history
nothing blocking there, since all instances of sysctl
->permissions() method are non-blocking - both of them,
that is.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jun 20, 2011
1 parent 1d29b5a commit 1aec703
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/proc/proc_sysctl.c
Expand Up @@ -304,9 +304,6 @@ static int proc_sys_permission(struct inode *inode, int mask,unsigned int flags)
struct ctl_table *table;
int error;

if (flags & IPERM_FLAG_RCU)
return -ECHILD;

/* Executable files are not allowed under /proc/sys/ */
if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode))
return -EACCES;
Expand Down

0 comments on commit 1aec703

Please sign in to comment.