https://bugzilla.novell.com/show_bug.cgi?id=309106#c1
Jesse Michael changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmichael@novell.com
--- Comment #1 from Jesse Michael 2007-09-10 00:26:20 MST ---
This is happening because the very last event in the logfile is a complain-mode
"PERMITTING x access to ..." message that was generated by an access(foo, X_OK)
call rather than an execve(foo) call.
The relevant code from 10.2 is--
if($sdmode eq "PERMITTING") {
do {
$stuffed = <LOG>;
} until $stuffed =~ /AppArmor|audit/;
if($stuffed =~ m/changing_profile/) {
$domainchange = "change";
$stuffed = undef;
}
}
That do { } until block won't exit until it hits a line from the logfile that
contains "AppArmor" or "audit", but if we're at the end of the file, that'll
never happen so it spins forever (or at least until something else happens to
cause another line that matches to be written to the log file).
The code in 10.3 was changed to--
if ($sdmode eq "PERMITTING") {
do {
$stuffed = <LOG>;
} until ((! $stuffed) || ($stuffed =~ /AppArmor|audit/));
if ($stuffed && ($stuffed =~ m/changing_profile/)) {
$domainchange = "change";
$stuffed = undef;
}
}
..to be able to handle when $stuffed is set to undef to indicate that we've
hit the end of the file, but I dunno why we never got that included in a 10.2
update.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.