mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:45:07 -05:00
sys_solaris: add support for dropping root privileges
On Solaris, use the privops helper for the ntp_adjtime(), settimeofday(), and bind() system calls.
This commit is contained in:
4
configure
vendored
4
configure
vendored
@@ -411,6 +411,10 @@ case $OPERATINGSYSTEM in
|
||||
add_def __EXTENSIONS__
|
||||
add_def _XOPEN_SOURCE 1
|
||||
add_def _XOPEN_SOURCE_EXTENDED 1
|
||||
if [ $feat_droproot = "1" ]; then
|
||||
add_def FEAT_PRIVDROP
|
||||
priv_ops="ADJUSTTIMEX SETTIME BINDSOCKET"
|
||||
fi
|
||||
echo "Configuring for Solaris (" $SYSTEM "SunOS version" $VERSION ")"
|
||||
;;
|
||||
* )
|
||||
|
||||
Reference in New Issue
Block a user