]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: Use ns_capable_noaudit() when determining net sysctl permissions
authorTyler Hicks <tyhicks@canonical.com>
Fri, 3 Jun 2016 04:43:22 +0000 (23:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2016 06:20:25 +0000 (08:20 +0200)
commitfc08184d38909a70596ccdf6acc49b4f7723266c
treedbd710991ba633eb0369fadbf081a5b022d39028
parent6bc11f071a775df8d8240a2599b024d8f1bf8e76
net: Use ns_capable_noaudit() when determining net sysctl permissions

commit d6e0d306449bcb5fa3c80e7a3edf11d45abf9ae9 upstream.

The capability check should not be audited since it is only being used
to determine the inode permissions. A failed check does not indicate a
violation of security policy but, when an LSM is enabled, a denial audit
message was being generated.

The denial audit message caused confusion for some application authors
because root-running Go applications always triggered the denial. To
prevent this confusion, the capability check in net_ctl_permissions() is
switched to the noaudit variant.

BugLink: https://launchpad.net/bugs/1465724
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sysctl_net.c