mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 18:17:09 +00:00
Extend the information dumped by -D rule-exprs to include permissions
Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Kees Cook <kees@ubuntu.com>
This commit is contained in:
parent
a5640ec89c
commit
662ad60cd7
@ -98,6 +98,7 @@ extern "C" int aare_add_rule_vec(aare_ruleset_t *rules, int deny,
|
|||||||
{
|
{
|
||||||
Node *tree = NULL, *accept;
|
Node *tree = NULL, *accept;
|
||||||
int exact_match;
|
int exact_match;
|
||||||
|
uint32_t allow = perms;
|
||||||
|
|
||||||
assert(perms != 0);
|
assert(perms != 0);
|
||||||
|
|
||||||
@ -220,6 +221,10 @@ extern "C" int aare_add_rule_vec(aare_ruleset_t *rules, int deny,
|
|||||||
}
|
}
|
||||||
cerr << " -> ";
|
cerr << " -> ";
|
||||||
tree->dump(cerr);
|
tree->dump(cerr);
|
||||||
|
if (deny)
|
||||||
|
cerr << " deny";
|
||||||
|
cerr << " (" << hex << allow <<"/" << audit << dec << ")";
|
||||||
|
accept->dump(cerr);
|
||||||
cerr << "\n\n";
|
cerr << "\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user