Bug 174676

Summary: hwclock audit return code mismatch
Product: [Fedora] Fedora Reporter: Jonathan Kamens <jik>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: ackistler, sgrubb
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-03 17:52:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Kamens 2005-12-01 10:42:56 UTC
I just upgraded to all current devel packages, including
kernel-smp-2.6.14-1.1719_FC5.i686.

Have selinux disabled.

When I shut down, I see this:

Syncing hardware clock to system time audit (#.#:#): user pid=# uid=0 auid=#
msg='changing system time: exe="/sbin/hwclock" (hostname=?, addr=?,
terminal=console res=failed)'

Something appears to be not working here.

Comment 1 Jonathan Kamens 2005-12-02 14:03:09 UTC
Hmm, I believe I have selinux disabled, so it's not obvious to me how this 
could be a bug in selinux-policy-targeted.

Or is selinux turned back on, even if it was previously disabled, as part of 
the shutdown process?


Comment 2 Karel Zak 2006-01-03 10:05:14 UTC
The message is from audit system and not from selinux. I think there is a bug in
the hwclock command that reports incorrect return code to audit subsystem (audit
interprets 0=failed, but in hwclock 0=succes and 1=error :-).

I'll fix it in a next update. Thanks for your report.

Comment 3 Karel Zak 2006-01-03 16:30:30 UTC
*** Bug 175466 has been marked as a duplicate of this bug. ***

Comment 4 Karel Zak 2006-01-03 17:52:35 UTC
Fixed. Update to util-linux >= 2.13-0.13.