Marcus Rueckert
f270973a6c
Accepted submit request 57745 from user jeff_mahoney OBS-URL: https://build.opensuse.org/request/show/57745 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apparmor?expand=0&rev=1
27 lines
895 B
Plaintext
27 lines
895 B
Plaintext
From: Jeff Mahoney <jeffm@suse.com>
|
|
Subject: apparmor-utils: Add support for creds and path operations
|
|
References: bnc#564316
|
|
|
|
2.6.29 introduced the path security_operations and credentials
|
|
|
|
This patch adds support for those operations to the log parser.
|
|
|
|
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
|
|
---
|
|
utils/SubDomain.pm | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
--- a/utils/SubDomain.pm
|
|
+++ b/utils/SubDomain.pm
|
|
@@ -2789,7 +2789,9 @@ sub add_event_to_tree ($) {
|
|
""
|
|
);
|
|
}
|
|
- } elsif ($e->{operation} =~ m/file_/) {
|
|
+ } elsif ($e->{operation} =~ m/file_/ or
|
|
+ # These are the path operations introduced in 2.6.29
|
|
+ $e->{operation} =~ m/^(open|unlink|mkdir|rmdir|mknod|truncate|symlink_create|link|rename_src|rename_dest)$/) {
|
|
add_to_tree( $e->{pid},
|
|
$e->{parent},
|
|
"path",
|