lkml.org 
[lkml]   [2022]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.19 041/365] apparmor: fix quiet_denied for file rules
    Date
    From: John Johansen <john.johansen@canonical.com>

    commit 68ff8540cc9e4ab557065b3f635c1ff4c96e1f1c upstream.

    Global quieting of denied AppArmor generated file events is not
    handled correctly. Unfortunately the is checking if quieting of all
    audit events is set instead of just denied events.

    Fixes: 67012e8209df ("AppArmor: basic auditing infrastructure.")
    Signed-off-by: John Johansen <john.johansen@canonical.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    security/apparmor/audit.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/security/apparmor/audit.c
    +++ b/security/apparmor/audit.c
    @@ -137,7 +137,7 @@ int aa_audit(int type, struct aa_profile
    }
    if (AUDIT_MODE(profile) == AUDIT_QUIET ||
    (type == AUDIT_APPARMOR_DENIED &&
    - AUDIT_MODE(profile) == AUDIT_QUIET))
    + AUDIT_MODE(profile) == AUDIT_QUIET_DENIED))
    return aad(sa)->error;

    if (KILL_MODE(profile) && type == AUDIT_APPARMOR_DENIED)

    \
     
     \ /
      Last update: 2022-08-23 10:13    [W:2.165 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site