mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
parser: Add a set of debug flags that can be passed to the kernel
The kernel will allow for a couple of debug flags on a profile that can be used to trigger debug messages for only profiles/labels that have the flag set. Add basic support for these to the parser. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
committed by
Georgia Garcia
parent
673e8f9d36
commit
3cc73ffe8d
@@ -243,7 +243,7 @@ void post_process_rule_entries(Profile *prof)
|
||||
static int profile_add_hat_rules(Profile *prof)
|
||||
{
|
||||
/* don't add hat rules if not hat or profile doesn't have hats */
|
||||
if (!prof->flags.hat && prof->hat_table.empty())
|
||||
if (!(prof->flags.flags & FLAG_HAT) && prof->hat_table.empty())
|
||||
return 0;
|
||||
|
||||
if (!add_proc_access(prof, CHANGEHAT_PATH))
|
||||
|
Reference in New Issue
Block a user