mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:55:07 -05:00
Linux capabilities support
Attached is a patch adding a linux capabilities support to chronyd. It adds -u option which can be used to specify the user which chronyd should switch to.
This commit is contained in:
committed by
Richard P. Curnow
parent
8336f14680
commit
be42b4eeea
8
sys.c
8
sys.c
@@ -97,6 +97,14 @@ SYS_Finalise(void)
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
void SYS_DropRoot(char *user)
|
||||
{
|
||||
#if defined(LINUX) && defined (FEAT_LINUXCAPS)
|
||||
SYS_Linux_DropRoot(user);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
/* ================================================== */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user