mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:55:07 -05:00
sys: specify context for syscall filter
Specify a context to enable different processes using different (more restrictive) syscall filters.
This commit is contained in:
4
sys.c
4
sys.c
@@ -114,10 +114,10 @@ void SYS_DropRoot(uid_t uid, gid_t gid)
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
void SYS_EnableSystemCallFilter(int level)
|
||||
void SYS_EnableSystemCallFilter(int level, SYS_SystemCallContext context)
|
||||
{
|
||||
#if defined(LINUX) && defined(FEAT_SCFILTER)
|
||||
SYS_Linux_EnableSystemCallFilter(level);
|
||||
SYS_Linux_EnableSystemCallFilter(level, context);
|
||||
#else
|
||||
LOG_FATAL("system call filter not supported");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user