summaryrefslogtreecommitdiffstats
path: root/security/apparmor/match.c
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2022-09-23 17:21:18 +0800
committerJohn Johansen <john.johansen@canonical.com>2022-10-03 14:49:04 -0700
commitadaa9a3f72e6f98538bfac54f6dc4afc0537f410 (patch)
tree56c572998b70ab8dc55428ff4a0decd4fc355200 /security/apparmor/match.c
parent1f939c6bd1512d0b39b470396740added3cb403f (diff)
downloadlinux-adaa9a3f72e6f98538bfac54f6dc4afc0537f410.tar.bz2
apparmor: Simplify obtain the newest label on a cred
In aa_get_task_label(), aa_get_newest_cred_label(__task_cred(task)) can do the same things as aa_get_newest_label(__aa_task_raw_label(task)), so we can replace it and remove __aa_task_raw_label() to simplify the code. Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/match.c')
0 files changed, 0 insertions, 0 deletions