patch-2.2.16 linux/kernel/sysctl.c
Next file: linux/mm/filemap.c
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Wed Jun 7 14:26:44 2000
- Orig file:
v2.2.15/linux/kernel/sysctl.c
- Orig date:
Wed May 3 17:16:53 2000
diff -urN v2.2.15/linux/kernel/sysctl.c linux/kernel/sysctl.c
@@ -801,8 +801,11 @@
int proc_dointvec_bset(ctl_table *table, int write, struct file *filp,
void *buffer, size_t *lenp)
{
+ if (!capable(CAP_SYS_MODULE)) {
+ return -EPERM;
+ }
return do_proc_dointvec(table,write,filp,buffer,lenp,1,
- (current->pid == 1) ? OP_SET : OP_AND);
+ (current->pid == 1) ? OP_SET : OP_AND);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)