X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=security%2Fapparmor%2Flsm.c;h=4257b7e2796bf16e41db9ddca0e1f7c8e0d08a02;hb=ef1e4e32d595d3e6c9a6d3d2956f087d5886c5e5;hp=fb99e18123b41b4f049fd98078e88aafccb7729b;hpb=69019d77c71472428a5d67ab8bb7cfa9145000d0;p=~andy%2Flinux diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index fb99e18123b..4257b7e2796 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c @@ -145,7 +145,7 @@ static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, if (!error) { profile = aa_cred_profile(cred); if (!unconfined(profile)) - error = aa_capable(current, profile, cap, audit); + error = aa_capable(profile, cap, audit); } return error; }