mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-05 00:35:13 +00:00
Fix bug where genprof/logprof would just die on newer mode format.
This does not allow genprof/logprof to enable features using the new format, just work with the new style logs.
This commit is contained in:
@@ -2161,6 +2161,9 @@ sub parse_log_record_v_2_0 ($@) {
|
||||
my ($sdmode, $mode, $detail, $prog, $pid, $profile, $hat) =
|
||||
($1, $2, $3, $4, $5, $6, $7);
|
||||
|
||||
if ($mode eq "link") {
|
||||
$mode = "l";
|
||||
}
|
||||
if (!validate_log_mode($mode)) {
|
||||
fatal_error(sprintf(gettext('Log contains unknown mode %s.'), $mode));
|
||||
}
|
||||
|
Reference in New Issue
Block a user