]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/sysctl.c
[PATCH] make reading /proc/sys/kernel/cap-bould not require CAP_SYS_MODULE
[linux-2.6-omap-h63xx.git] / kernel / sysctl.c
index 600b33358ded97ea54e90b6cc39dafef8e03fa40..41bbba1a15daedc9ba4983db74d0599b26d098a9 100644 (file)
@@ -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;
        }