Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1412786

[PATCH RESEND 0/2] Quiet noisy LSM denial when accessing net sysctl

From Tyler Hicks <tyhicks@canonical.com>
Newsgroups linux.kernel
Subject [PATCH RESEND 0/2] Quiet noisy LSM denial when accessing net sysctl
Date 2016-06-03 06:50 +0200
Message-ID <rFPdv-73m-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


I'm resending this patch set at the request of James Morris. This pair of
patches does away with what I believe is a useless denial audit message
when a privileged process initially accesses a net sysctl.

The bug was first discovered when running Go applications under AppArmor
confinement. It can be triggered like so:

  $ echo "profile test { file, }" | sudo apparmor_parser -rq

Once the profile is loaded, invoke Go as root under confinement:

  $ sudo aa-exec -p test -- go version
  go version go1.6.1 linux/amd64

Here's the denial:

  audit: type=1400 audit(1462575436.832:29): apparmor="DENIED" operation="capable" profile="test" pid=1157 comm="go" capability=12  capname="net_admin"

The reproducer in minimal form is:

  $ sudo aa-exec -p test -- cat /proc/sys/net/core/somaxconn
  128

The denial:

  audit: type=1400 audit(1462575670.000:29): apparmor="DENIED" operation="capable" profile="test" pid=1161 comm="cat" capability=12  capname="net_admin"

Thanks!

Tyler

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH RESEND 0/2] Quiet noisy LSM denial when accessing net sysctl Tyler Hicks <tyhicks@canonical.com> - 2016-06-03 06:50 +0200
  [PATCH RESEND 2/2] net: Use ns_capable_noaudit() when determining net sysctl permissions Tyler Hicks <tyhicks@canonical.com> - 2016-06-03 06:50 +0200
    Re: [PATCH RESEND 2/2] net: Use ns_capable_noaudit() when determining  net sysctl permissions James Morris <jmorris@namei.org> - 2016-06-06 12:00 +0200
  [PATCH RESEND 1/2] kernel: Add noaudit variant of ns_capable() Tyler Hicks <tyhicks@canonical.com> - 2016-06-03 06:50 +0200

csiph-web