]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: provide userspace flag indicating binfmt_elf_mmap change
authorJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 08:42:43 +0000 (00:42 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 09:18:35 +0000 (01:18 -0800)
commit9e78e6668f91d9f515070e03493a0db894a44971
tree09316c8c181a845b3a7dd81d6b831f9ce11f4537
parentdf4f6ee75ac3fd32da20b45288fa882f9ff5afdd
apparmor: provide userspace flag indicating binfmt_elf_mmap change

Commit 7ef7b9e2eed4 ("binfmt_elf: switch to new creds when switching to new mm")
changed when the creds are installed by the binfmt_elf handler. This
affects which creds are used to mmap the executable into the address
space. Which can have an affect on apparmor policy.

Add a flag to apparmor at
/sys/kernel/security/apparmor/features/domain/fix_binfmt_elf_mmap

to make it possible to detect this semantic change so that the userspace
tools and the regression test suite can correctly deal with the change.

BugLink: http://bugs.launchpad.net/bugs/1630069
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c