]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - security/apparmor/resource.c
apparmor: convert to profile block critical sections
[mirror_ubuntu-bionic-kernel.git] / security / apparmor / resource.c
index ae66151fdc38758592c9638dfdf0fe35aa99da9d..b26f1dac5106a5f9f03fbd5d0e049013943b62c1 100644 (file)
@@ -90,7 +90,7 @@ int aa_task_setrlimit(struct aa_profile *profile, struct task_struct *task,
        int error = 0;
 
        rcu_read_lock();
-       task_profile = aa_get_profile(aa_cred_profile(__task_cred(task)));
+       task_profile = aa_get_newest_cred_profile((__task_cred(task)));
        rcu_read_unlock();
 
        /* TODO: extend resource control to handle other (non current)