]> www.infradead.org Git - users/jedix/linux-maple.git/commit
apparmor: properly handle cx/px lookup failure for complain
authorRyan Lee <ryan.lee@canonical.com>
Fri, 23 Aug 2024 17:14:02 +0000 (10:14 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 27 Nov 2024 03:21:05 +0000 (19:21 -0800)
commitdb93ca15e5aefe868ef095ee830a205f70f38b6e
tree8d5f43d7d52a2e809f56302b909d7fb77462f466
parent17d0d04f3c999e7784648bad70ce1766c3b49d69
apparmor: properly handle cx/px lookup failure for complain

mode profiles

When a cx/px lookup fails, apparmor would deny execution of the binary
even in complain mode (where it would audit as allowing execution while
actually denying it). Instead, in complain mode, create a new learning
profile, just as would have been done if the cx/px line wasn't there.

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/domain.c