patch-2.4.0-test2 linux/kernel/sysctl.c
Next file: linux/lib/Makefile
Previous file: linux/kernel/sys.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Fri Jun 23 21:06:37 2000
- Orig file:
v2.4.0-test1/linux/kernel/sysctl.c
- Orig date:
Fri May 12 14:18:56 2000
diff -u --recursive --new-file v2.4.0-test1/linux/kernel/sysctl.c linux/kernel/sysctl.c
@@ -803,8 +803,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);
}
int proc_dointvec_minmax(ctl_table *table, int write, struct file *filp,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)