Ondrej Mosnacek
2d87a0674b
timekeeping: Audit clock adjustments
...
Emit an audit record whenever the system clock is changed (i.e. shifted
by a non-zero offset) by a syscall from userspace. The syscalls than can
(at the time of writing) trigger such record are:
- settimeofday(2), stime(2), clock_settime(2) -- via
do_settimeofday64()
- adjtimex(2), clock_adjtime(2) -- via do_adjtimex()
The new records have type AUDIT_TIME_INJOFFSET and contain the following
fields:
- sec -- the 'seconds' part of the offset
- nsec -- the 'nanoseconds' part of the offset
Example record (time was shifted backwards by ~15.875 seconds):
type=TIME_INJOFFSET msg=audit(1530616049.652:13): sec=-16 nsec=124887145
The records of this type will be associated with the corresponding
syscall records.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com >
Reviewed-by: Richard Guy Briggs <rgb@redhat.com >
Reviewed-by: Thomas Gleixner <tglx@linutronix.de >
[PM: fixed a line width problem in __audit_tk_injoffset()]
Signed-off-by: Paul Moore <paul@paul-moore.com >
2019-04-15 18:10:17 -04:00
..
2019-03-11 08:54:01 -07:00
2019-03-12 14:08:19 -07:00
2018-10-24 20:55:56 -04:00
2018-12-30 08:31:52 +00:00
2019-03-12 10:04:02 -07:00
2019-03-11 17:01:32 -07:00
2019-03-07 18:32:02 -08:00
2019-03-08 10:09:53 -08:00
2019-03-05 15:56:59 +01:00
2019-03-09 14:15:51 +01:00
2019-03-12 10:04:02 -07:00
2019-03-15 14:22:59 -07:00
2019-03-06 07:59:36 -08:00
2019-03-06 10:31:36 -08:00
2019-04-15 18:10:17 -04:00
2019-03-16 12:36:39 -07:00
2019-03-07 18:32:02 -08:00
2018-01-04 16:45:09 -08:00
2019-01-31 14:20:54 +01:00
2019-01-18 17:53:29 -05:00
2019-01-14 18:01:05 -05:00
2019-01-18 17:53:29 -05:00
2019-03-20 20:57:48 -04:00
2019-02-07 21:44:27 -05:00
2019-04-08 18:10:35 -04:00
2019-04-15 18:10:17 -04:00
2018-10-31 08:54:14 -07:00
2019-01-25 11:22:43 -08:00
2019-02-07 00:13:27 +01:00
2019-03-07 18:32:02 -08:00
2017-07-31 13:09:49 +02:00
2019-02-04 08:57:24 +01:00
2019-03-05 21:07:14 -08:00
2019-01-08 13:18:44 -08:00
2018-10-26 16:26:32 -07:00
2018-05-16 07:23:35 +02:00
2017-11-02 11:10:55 +01:00
2018-05-16 07:23:35 +02:00
2019-03-07 10:11:41 -08:00
2018-02-21 16:54:06 +01:00
2018-10-31 08:54:12 -07:00
2019-03-09 15:53:03 -08:00
2018-08-06 12:35:20 +02:00
2019-03-06 07:17:17 -08:00
2017-12-14 16:00:49 -08:00
2019-03-07 18:31:59 -08:00
2018-05-15 23:08:33 -07:00
2018-01-08 19:43:15 +01:00
2019-01-06 09:46:51 +09:00
2019-01-21 17:38:56 -03:00
2017-11-02 11:10:55 +01:00
2019-02-01 20:55:38 +01:00
2018-12-15 17:44:35 +09:00
2019-03-07 18:32:02 -08:00
2018-12-28 12:11:47 -08:00
2018-12-06 14:38:50 +00:00
2017-11-02 11:10:55 +01:00
2018-07-16 12:31:57 -07:00
2017-09-08 18:26:51 -07:00
2019-02-13 08:16:40 +01:00
2017-07-12 16:25:59 -07:00
2019-03-06 10:31:36 -08:00
2019-03-07 18:32:02 -08:00
2018-12-28 12:11:52 -08:00
2018-11-07 14:41:41 +01:00
2018-07-02 11:36:17 +02:00
2019-03-07 18:32:00 -08:00
2018-11-16 14:11:04 +08:00
2019-03-07 18:31:59 -08:00
2018-04-11 10:28:37 -07:00
2018-09-16 16:08:25 +02:00
2018-12-28 12:42:30 -08:00
2018-10-31 08:54:16 -07:00
2019-01-03 18:57:57 -08:00
2017-11-02 11:10:55 +01:00
2018-09-11 16:13:24 +01:00
2019-03-12 13:27:20 -07:00
2019-03-16 13:05:32 -07:00
2019-01-03 18:57:57 -08:00
2019-03-20 21:12:36 -04:00
2019-03-16 13:47:14 -07:00
2019-01-30 19:27:00 +01:00
2018-07-03 09:20:44 +02:00
2017-11-02 11:10:55 +01:00
2019-02-10 21:51:39 +01:00
2018-12-05 19:31:44 -08:00
2018-08-13 11:25:07 -07:00
2019-03-16 13:47:14 -07:00
2019-03-07 19:25:37 -08:00
2019-01-04 13:13:47 -08:00
2019-03-12 10:04:00 -07:00
2017-12-17 13:57:15 +01:00
2018-02-06 18:32:46 -08:00
2018-06-21 12:33:05 +02:00
2019-02-09 08:47:52 -08:00
2018-11-27 09:21:41 -08:00
2018-04-05 21:36:27 -07:00
2018-04-02 20:15:59 +02:00
2018-04-02 20:15:30 +02:00
2019-01-11 18:05:40 -08:00
2018-10-09 16:51:11 +02:00
2018-11-07 23:51:16 -06:00
2018-08-22 10:52:47 -07:00
2018-08-11 02:05:53 -05:00
2018-04-11 10:28:35 -07:00
2018-08-30 12:56:40 +02:00
2018-11-01 14:33:35 +01:00
2019-02-01 15:46:23 -08:00
2019-03-10 13:48:14 -07:00