Commit 67e14e37 authored by John Johansen's avatar John Johansen Committed by Tim Gardner

UBUNTU: SAUCE: apparmor: Disallow update of cred when then subjective != the objective cred

BugLink: http://bugs.launchpad.net/bugs/1430546Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 867f85c9
......@@ -100,6 +100,9 @@ int aa_replace_current_label(struct aa_label *label)
if (cxt->label == label)
return 0;
if (current_cred() != current_real_cred())
return -EBUSY;
new = prepare_creds();
if (!new)
return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment