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/clock.h | |
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/clock.h')
-rw-r--r-- | hwclock/clock.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hwclock/clock.h b/hwclock/clock.h index f1d00e493..39971f721 100644 --- a/hwclock/clock.h +++ b/hwclock/clock.h @@ -34,3 +34,10 @@ extern void set_cmos_access(int Jensen, int funky_toy); extern int get_epoch_rtc(unsigned long *epoch, int silent); extern int set_epoch_rtc(unsigned long epoch); extern char *rtc_dev_name; + +#ifdef HAVE_LIBAUDIT +extern void hwaudit_exit(int status); +# define hwclock_exit(_status) hwaudit_exit(_status) +#else +# define hwclock_exit(_status) exit(_status) +#endif |