]> git.ipfire.org Git - thirdparty/chrony.git/commit
sys_linux: report if CAP_SYS_TIME is not present
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Wed, 14 Mar 2018 14:05:29 +0000 (15:05 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 14 Mar 2018 15:14:56 +0000 (16:14 +0100)
commit02098ed830815e1856e92b7328e2630a62fcdad9
treee3fa150c1876130a889aeb7212011d071c309d55
parentaa4228bf1bf1bad6bc8b069713485ed69d382e47
sys_linux: report if CAP_SYS_TIME is not present

Instead of having adjtimex just fail with a permission issue
improve the error messaging by warning for the lack of
CAP_SYS_TIME on SYS_Linux_Initialise.

Message will look like (instead of only the latter message):
 CAP_SYS_TIME not present
 adjtimex(0x8001) failed : Operation not permitted

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
sys_linux.c