2
0
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:
John Johansen
2008-03-13 10:49:44 +00:00
parent fe2502ed2d
commit aed6f06800

View File

@@ -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));
}