Commit 0a8cba49 authored by John Johansen's avatar John Johansen Committed by Shrirang Bagul
Browse files

apparmor: fix mediation of prlimit

BugLink: http://bugs.launchpad.net/bugs/1763427



For primit apparmor requires that if target confinement does not match
the setting task's confinement, the setting task requires CAP_SYS_RESOURCE.

Unfortunately this was broken when rlimit enforcement was reworked to
support labels.

Fixes: 86b92cb7 ("apparmor: move resource checks to using labels")
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
(cherry picked from commit a4c2746f4d4b32d8557ee17821f1101fd8474f92
 git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor

)
Signed-off-by: default avatarSeth Forshee <seth.forshee@canonical.com>
(cherry picked from commit 6827f32b)
Signed-off-by: default avatarShrirang Bagul <shrirang.bagul@canonical.com>
parent 27d6fbe0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment