aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_sysctl.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-06-18 20:42:00 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-06-20 10:45:25 -0400
commit1aec7036d0c2996c86ce483ca0a28f3b20807b43 (patch)
tree718103f35e7882593ec9ad8994a6e004b3757381 /fs/proc/proc_sysctl.c
parent1d29b5a2ed7eb8862c9b66daf475f3e4c1a40299 (diff)
downloadkernel_samsung_crespo-1aec7036d0c2996c86ce483ca0a28f3b20807b43.zip
kernel_samsung_crespo-1aec7036d0c2996c86ce483ca0a28f3b20807b43.tar.gz
kernel_samsung_crespo-1aec7036d0c2996c86ce483ca0a28f3b20807b43.tar.bz2
proc_sys_permission() is OK in RCU mode
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>
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r--fs/proc/proc_sysctl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index f50133c..d167de3 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -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;