mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 02:25:07 -05:00
configure: add new options to disable dropping root privileges
This commit is contained in:
12
configure
vendored
12
configure
vendored
@@ -113,7 +113,8 @@ For better control, use the options below.
|
|||||||
--disable-pps Disable PPS refclock driver
|
--disable-pps Disable PPS refclock driver
|
||||||
--disable-ipv6 Disable IPv6 support
|
--disable-ipv6 Disable IPv6 support
|
||||||
--disable-rtc Don't include RTC even on Linux
|
--disable-rtc Don't include RTC even on Linux
|
||||||
--disable-linuxcaps Disable libcap (Linux capabilities) support
|
--disable-privdrop Disable support for dropping root privileges
|
||||||
|
--without-libcap Don't use libcap even if it is available
|
||||||
--disable-asyncdns Disable asynchronous name resolving
|
--disable-asyncdns Disable asynchronous name resolving
|
||||||
--disable-forcednsretry Don't retry on permanent DNS error
|
--disable-forcednsretry Don't retry on permanent DNS error
|
||||||
--with-ntp-era=SECONDS Specify earliest assumed NTP time in seconds
|
--with-ntp-era=SECONDS Specify earliest assumed NTP time in seconds
|
||||||
@@ -214,7 +215,7 @@ try_tomcrypt=1
|
|||||||
feat_rtc=1
|
feat_rtc=1
|
||||||
try_rtc=0
|
try_rtc=0
|
||||||
feat_droproot=1
|
feat_droproot=1
|
||||||
try_libcap=0
|
try_libcap=-1
|
||||||
try_clockctl=0
|
try_clockctl=0
|
||||||
readline_lib=""
|
readline_lib=""
|
||||||
readline_inc=""
|
readline_inc=""
|
||||||
@@ -312,9 +313,12 @@ do
|
|||||||
--disable-pps)
|
--disable-pps)
|
||||||
feat_pps=0
|
feat_pps=0
|
||||||
;;
|
;;
|
||||||
--disable-linuxcaps)
|
--disable-privdrop)
|
||||||
feat_droproot=0
|
feat_droproot=0
|
||||||
;;
|
;;
|
||||||
|
--without-libcap|--disable-linuxcaps)
|
||||||
|
try_libcap=0
|
||||||
|
;;
|
||||||
--disable-asyncdns)
|
--disable-asyncdns)
|
||||||
feat_asyncdns=0
|
feat_asyncdns=0
|
||||||
;;
|
;;
|
||||||
@@ -381,7 +385,7 @@ case $SYSTEM in
|
|||||||
;;
|
;;
|
||||||
Linux* )
|
Linux* )
|
||||||
EXTRA_OBJECTS="sys_generic.o sys_linux.o wrap_adjtimex.o"
|
EXTRA_OBJECTS="sys_generic.o sys_linux.o wrap_adjtimex.o"
|
||||||
try_libcap=1
|
[ $try_libcap != "0" ] && try_libcap=1
|
||||||
try_rtc=1
|
try_rtc=1
|
||||||
try_setsched=1
|
try_setsched=1
|
||||||
try_lockmem=1
|
try_lockmem=1
|
||||||
|
|||||||
Reference in New Issue
Block a user