2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-01 14:55:10 +00:00

- utils/SubDomain.pm: get rid of warnings

This commit is contained in:
Marc Deslauriers
2010-03-26 09:51:21 -04:00
parent f0b380fe5e
commit daffe30e47

View File

@@ -6612,10 +6612,14 @@ 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 #map new c and d to w as logprof doesn't support them yet
if ($rmask) {
$rmask =~ s/c/w/g; $rmask =~ s/c/w/g;
$rmask =~ s/d/w/g; $rmask =~ s/d/w/g;
}
if ($dmask) {
$dmask =~ s/c/w/g; $dmask =~ s/c/w/g;
$dmask =~ s/d/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.'),