diff options
author | Karel Zak | 2007-03-21 14:12:05 +0100 |
---|---|---|
committer | Karel Zak | 2007-03-21 14:12:05 +0100 |
commit | 88058a71e27a5b4ded2879b774aaf1c1a15944ca (patch) | |
tree | 70494baa53324375eda8c44ebbfd46ad00e358da /hwclock/rtc.c | |
parent | hwclock: fix --systohc sets clock 0.5 seconds slow (diff) | |
download | kernel-qcow2-util-linux-88058a71e27a5b4ded2879b774aaf1c1a15944ca.tar.gz kernel-qcow2-util-linux-88058a71e27a5b4ded2879b774aaf1c1a15944ca.tar.xz kernel-qcow2-util-linux-88058a71e27a5b4ded2879b774aaf1c1a15944ca.zip |
hwclock: add support for audit system
If you compile --with-audit the hwclock tool reports changes in sys/hw clock to
audit system. The real long-term and final solution is probably add hooks for
/dev/rtc to kernel, but it's not implemented yet.
Signed-off-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'hwclock/rtc.c')
-rw-r--r-- | hwclock/rtc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hwclock/rtc.c b/hwclock/rtc.c index 33be42bbe..dddb1e372 100644 --- a/hwclock/rtc.c +++ b/hwclock/rtc.c @@ -131,7 +131,7 @@ open_rtc_or_exit(void) { if (rtc_fd < 0) { outsyserr(_("open() of %s failed"), rtc_dev_name); - exit(EX_OSFILE); + hwclock_exit(EX_OSFILE); } return rtc_fd; } @@ -166,7 +166,7 @@ do_rtc_read_ioctl(int rtc_fd, struct tm *tm) { perror(ioctlname); fprintf(stderr, _("ioctl() to %s to read the time failed.\n"), rtc_dev_name); - exit(EX_IOERR); + hwclock_exit(EX_IOERR); } tm->tm_isdst = -1; /* don't know whether it's dst */ @@ -346,7 +346,7 @@ set_hardware_clock_rtc(const struct tm *new_broken_time) { perror(ioctlname); fprintf(stderr, _("ioctl() to %s to set the time failed.\n"), rtc_dev_name); - exit(EX_IOERR); + hwclock_exit(EX_IOERR); } if (debug) |