mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 06:45:38 +00:00
Fix genprof/logprof to handle create (c) and delete (d) permissions that
are being reported by the kernel modules auditing.
This commit is contained in:
@@ -6611,6 +6611,12 @@ sub parse_event($) {
|
|||||||
|
|
||||||
LibAppArmor::free_record($event);
|
LibAppArmor::free_record($event);
|
||||||
|
|
||||||
|
#map new c and d to w as logprof doesn't support them yet
|
||||||
|
$rmask =~ s/c/w/g;
|
||||||
|
$rmask =~ s/d/w/g;
|
||||||
|
$dmask =~ s/c/w/g;
|
||||||
|
$dmask =~ s/d/w/g;
|
||||||
|
|
||||||
if ($rmask && !validate_log_mode(hide_log_mode($rmask))) {
|
if ($rmask && !validate_log_mode(hide_log_mode($rmask))) {
|
||||||
fatal_error(sprintf(gettext('Log contains unknown mode %s.'),
|
fatal_error(sprintf(gettext('Log contains unknown mode %s.'),
|
||||||
$rmask));
|
$rmask));
|
||||||
|
Reference in New Issue
Block a user