diff options
-rw-r--r-- | kernel/sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 600b33358ded..41bbba1a15da 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, | |||
1961 | { | 1961 | { |
1962 | int op; | 1962 | int op; |
1963 | 1963 | ||
1964 | if (!capable(CAP_SYS_MODULE)) { | 1964 | if (write && !capable(CAP_SYS_MODULE)) { |
1965 | return -EPERM; | 1965 | return -EPERM; |
1966 | } | 1966 | } |
1967 | 1967 | ||