aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sysctl_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sysctl_net.c b/net/sysctl_net.c
index 5bc1a3d57401..e0c71bd8f7cf 100644
--- a/net/sysctl_net.c
+++ b/net/sysctl_net.c
@@ -44,7 +44,7 @@ static int net_ctl_permissions(struct ctl_table_header *head,
44 struct net *net = container_of(head->set, struct net, sysctls); 44 struct net *net = container_of(head->set, struct net, sysctls);
45 45
46 /* Allow network administrator to have same access as root. */ 46 /* Allow network administrator to have same access as root. */
47 if (ns_capable(net->user_ns, CAP_NET_ADMIN)) { 47 if (ns_capable_noaudit(net->user_ns, CAP_NET_ADMIN)) {
48 int mode = (table->mode >> 6) & 7; 48 int mode = (table->mode >> 6) & 7;
49 return (mode << 6) | (mode << 3) | mode; 49 return (mode << 6) | (mode << 3) | mode;
50 } 50 }