nts: move loading of syscall filter in NTS-KE server
Load the filter after NKS_Initialise() to avoid hitting
a fcntl syscall.
Fixes: 66e097e3e6
("nts: improve NTS-KE server/client code")
This commit is contained in:
parent
72bf3d26eb
commit
be503bbcf6
1 changed files with 2 additions and 2 deletions
|
@ -641,12 +641,12 @@ run_helper(uid_t uid, gid_t gid, int scfilter_level)
|
|||
if (!geteuid() && (uid || gid))
|
||||
SYS_DropRoot(uid, gid);
|
||||
|
||||
NKS_Initialise();
|
||||
|
||||
UTI_SetQuitSignalsHandler(helper_signal, 1);
|
||||
if (scfilter_level != 0)
|
||||
SYS_EnableSystemCallFilter(scfilter_level, SYS_NTSKE_HELPER);
|
||||
|
||||
NKS_Initialise();
|
||||
|
||||
SCH_MainLoop();
|
||||
|
||||
DEBUG_LOG("Helper exiting");
|
||||
|
|
Loading…
Reference in a new issue