diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 600b33358ded97ea54e90b6cc39dafef8e03fa40..41bbba1a15daedc9ba4983db74d0599b26d098a9 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1961,7 +1961,7 @@ int proc_dointvec_bset(ctl_table *table, int write, struct file *filp, { int op; - if (!capable(CAP_SYS_MODULE)) { + if (write && !capable(CAP_SYS_MODULE)) { return -EPERM; }