On 2016-03-15 11:30, Per Jessen wrote:
Carlos E. R. wrote:
Did you yourself choose to run ntpd chroot'ed?
The funny thing is that I thought I was not, but the files there are up to date. There is a /var/lib/ntp/var/run/ntp/ntpd.pid which does point to ntpd, so it is running there. And indeed, in /etc/sysconfig/ntp I have:
NTPD_RUN_CHROOTED="yes"
To make sure, try "ls -l /proc/$(pidof ntpd)" and look at root.
Telcontar:~ # ls -l /proc/$(pidof ntpd)/root lrwxrwxrwx 1 root root 0 Mar 15 19:08 /proc/14926/root -> /var/lib/ntp Telcontar:~ #
When chroot'ed your ntpd will be running with '-i' specified.
Telcontar:~ # cat /proc/$(pidof ntpd)/cmdline /usr/sbin/ntpd-p/var/run/ntp/ntpd.pid-g-untp:ntp-i/var/lib/ntp-c/etc/ntp.conf Telcontar:~ # So, yes.
In Leap 42.1, sysconfig::NTPD_RUN_CHROOTED is "no". Same in 13.2, 13.1 and 12.3. Interestingly, in Leap421, /usr/bin/start-ntpd appears to have a hardcoded NTPD_RUN_CHROOTED="yes". I might not have read that script right.
I have not intentionally configured it to run chrooted. That must have been the default at some time. This is 13.1, but upgraded all the way back to 5.3. Telcontar:~ # l /etc/sysconfig/ntp -rw-r--r-- 1 root root 1877 May 9 2015 /etc/sysconfig/ntp Telcontar:~ # The file is dated that time. Default config in 13.1: Telcontar:~ # rpm -qV ntp SM5....T. c /etc/ntp.conf Telcontar:~ # -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)