Red Hat Bugzilla – Bug 122406
security error messages from RPM install overwrite dmesg info
Last modified: 2007-11-30 17:10:41 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b)
Description of problem:
I have recently installed FC2 Test3, and for some reason I get a *LOT*
of warnings when installing any RPMS, including those in the yum
repository. This would not be much of a concern, because the RPMs
install fine, except that after these messages are displayed, they
somehow replace all of the output from dmesg.
As an example, if I reboot, log in, and type 'dmesg', I get the
expected information from the kernel about the boot and drivers, etc.
After installing an RPM, I no longer can get this information from
dmesg. Instead, I am greeted with many lines similar in content to
security_context_to_sid: called before initial load_policy on unknown
Where 'ssh' can take values for just about every package installed on
It should be noted that the file /var/log/dmesg still contains the
expected information, and does not contain any of the above messages.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Reboot, log in.
2. # dmesg
3. # yum update sudo
4. # dmesg
Actual Results: After step 2, above, dmesg prints the contents of
/var/log/dmesg. After step 4, above, it does not and instead prints
out lines of warnings from the RPM installation as stated in the
Expected Results: The output of dmesg should be consistent with
/var/log/dmesg regardless of what RPM has done.
The dmesg command just prints the last few lines of kernel messages.
The selinux thing will cause the kernel to print those messages you saw.
/var/log/dmesg is not constantly updated - it is just created at boot
to preserve the latest kernel messages at that time.
Things are behaving as I would expect.