OSDN Git Service

apparmor: make sure perm indexes are accumulated
authorJohn Johansen <john.johansen@canonical.com>
Tue, 6 Sep 2022 06:53:29 +0000 (23:53 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 3 Oct 2022 21:49:04 +0000 (14:49 -0700)
commit0bece4fa97a2bd397da66d4fced78f76eb214a3e
tree7a5e0d42965a373f3e7e5e058e94d99d079e00f0
parent670f31774ab6bf8e2d756f27444b035b9be8a0c9
apparmor: make sure perm indexes are accumulated

accumulate permission indexes on a first encountered basis. This
favors original rulesets so that new ones can not override without
profile replacement.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/include/file.h
security/apparmor/include/perms.h
security/apparmor/lib.c