mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:55:07 -05:00
sys: don't start privops helper for NTS-KE helper
The NTS-KE helper doesn't need to bind sockets or adjust the clock. Don't start the privops helper, or keep the capabilities, when dropping root privileges in its context.
This commit is contained in:
@@ -57,7 +57,8 @@ SYS_Solaris_Finalise(void)
|
||||
void
|
||||
SYS_Solaris_DropRoot(uid_t uid, gid_t gid, SYS_ProcessContext context)
|
||||
{
|
||||
PRV_StartHelper();
|
||||
if (context == SYS_MAIN_PROCESS)
|
||||
PRV_StartHelper();
|
||||
UTI_DropRoot(uid, gid);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user