From 88058a71e27a5b4ded2879b774aaf1c1a15944ca Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 21 Mar 2007 14:12:05 +0100 Subject: 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 Signed-off-by: Karel Zak --- hwclock/clock.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hwclock/clock.h') 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 -- cgit v1.2.3-55-g7522