Loading fs/proc/proc_sysctl.c +0 −3 Original line number Original line Diff line number Diff line Loading @@ -304,9 +304,6 @@ static int proc_sys_permission(struct inode *inode, int mask,unsigned int flags) struct ctl_table *table; struct ctl_table *table; int error; int error; if (flags & IPERM_FLAG_RCU) return -ECHILD; /* Executable files are not allowed under /proc/sys/ */ /* Executable files are not allowed under /proc/sys/ */ if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode)) if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode)) return -EACCES; return -EACCES; Loading Loading
fs/proc/proc_sysctl.c +0 −3 Original line number Original line Diff line number Diff line Loading @@ -304,9 +304,6 @@ static int proc_sys_permission(struct inode *inode, int mask,unsigned int flags) struct ctl_table *table; struct ctl_table *table; int error; int error; if (flags & IPERM_FLAG_RCU) return -ECHILD; /* Executable files are not allowed under /proc/sys/ */ /* Executable files are not allowed under /proc/sys/ */ if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode)) if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode)) return -EACCES; return -EACCES; Loading