]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: fix apparmorfs DAC access permissions
authorJohn Johansen <john.johansen@canonical.com>
Thu, 31 Aug 2017 16:54:43 +0000 (09:54 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 22 Sep 2017 20:20:01 +0000 (13:20 -0700)
commit0f7547004111be32ce3af794fbb27c72259a525a
tree374078c17e7382e6a29831f232fefaae35eeb9bd
parent2fa208d9ba5569fd6b8e7c5a258de876c5b0a0b3
apparmor: fix apparmorfs DAC access permissions

The DAC access permissions for several apparmorfs files are wrong.

.access - needs to be writable by all tasks to perform queries
the others in the set only provide a read fn so should be read only.

With policy namespace virtualization all apparmor needs to control
the permission and visibility checks directly which means DAC
access has to be allowed for all user, group, and other.

BugLink: http://bugs.launchpad.net/bugs/1713103
Fixes: 8043e53a7b5bd ("apparmor: rename apparmor file fns and data to indicate use")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c