Test/Bionic: ===
$ lsb_release -cs bionic
Before: (audit.log has res=failed) ---
$ dpkg -s util-linux | grep ^Version: Version: 2.31.1-0.4ubuntu3.5
$ sudo hwclock --set --date "1/1/2000 00:00:00" $ echo $? 0
$ sudo hwclock --utc --systohc $ echo $? 0
$ grep hwclock /var/log/audit/audit.log | tail -n2 type=USYS_CONFIG msg=audit(1583956487.134:64): pid=3463 uid=0 auid=1000 ses=5 msg='op=change-system-time exe="/sbin/hwclock" hostname=bionic addr=? terminal=pts/0 res=failed' type=USYS_CONFIG msg=audit(1583956490.498:70): pid=3465 uid=0 auid=1000 ses=5 msg='op=change-system-time exe="/sbin/hwclock" hostname=bionic addr=? terminal=pts/0 res=failed'
After: (audit.log has res=success) ---
$ sudo add-apt-repository ppa:mfo/lp1865504 $ sudo apt install -y util-linux
$ dpkg -s util-linux | grep ^Version: Version: 2.31.1-0.4ubuntu3.6
$ grep hwclock /var/log/audit/audit.log | tail -n2 type=USYS_CONFIG msg=audit(1583956532.257:81): pid=3827 uid=0 auid=1000 ses=5 msg='op=change-system-time exe="/sbin/hwclock" hostname=bionic addr=? terminal=pts/0 res=success' type=USYS_CONFIG msg=audit(1583956535.497:87): pid=3829 uid=0 auid=1000 ses=5 msg='op=change-system-time exe="/sbin/hwclock" hostname=bionic addr=? terminal=pts/0 res=success'
Test/Bionic:
===
$ lsb_release -cs
bionic
Before: (audit.log has res=failed)
---
$ dpkg -s util-linux | grep ^Version:
Version: 2.31.1-0.4ubuntu3.5
$ sudo hwclock --set --date "1/1/2000 00:00:00"
$ echo $?
0
$ sudo hwclock --utc --systohc
$ echo $?
0
$ grep hwclock /var/log/ audit/audit. log | tail -n2 1583956487. 134:64) : pid=3463 uid=0 auid=1000 ses=5 msg='op= change- system- time exe="/sbin/hwclock" hostname=bionic addr=? terminal=pts/0 res=failed' 1583956490. 498:70) : pid=3465 uid=0 auid=1000 ses=5 msg='op= change- system- time exe="/sbin/hwclock" hostname=bionic addr=? terminal=pts/0 res=failed'
type=USYS_CONFIG msg=audit(
type=USYS_CONFIG msg=audit(
After: (audit.log has res=success)
---
$ sudo add-apt-repository ppa:mfo/lp1865504
$ sudo apt install -y util-linux
$ dpkg -s util-linux | grep ^Version:
Version: 2.31.1-0.4ubuntu3.6
$ sudo hwclock --set --date "1/1/2000 00:00:00"
$ echo $?
0
$ sudo hwclock --utc --systohc
$ echo $?
0
$ grep hwclock /var/log/ audit/audit. log | tail -n2 1583956532. 257:81) : pid=3827 uid=0 auid=1000 ses=5 msg='op= change- system- time exe="/sbin/hwclock" hostname=bionic addr=? terminal=pts/0 res=success' 1583956535. 497:87) : pid=3829 uid=0 auid=1000 ses=5 msg='op= change- system- time exe="/sbin/hwclock" hostname=bionic addr=? terminal=pts/0 res=success'
type=USYS_CONFIG msg=audit(
type=USYS_CONFIG msg=audit(