Bug 174676 - hwclock audit return code mismatch
Summary: hwclock audit return code mismatch
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Ben Levenson
URL:
Whiteboard:
: 175466 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-01 10:42 UTC by Jonathan Kamens
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-03 17:52:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.