diff --git a/adapter/nwebspawn_lancher.cpp b/adapter/nwebspawn_lancher.cpp index da70c021..1c957e8c 100644 --- a/adapter/nwebspawn_lancher.cpp +++ b/adapter/nwebspawn_lancher.cpp @@ -25,6 +25,8 @@ pid_t NwebSpawnLanch() pid_t ret = fork(); if (ret == 0) { setcon("u:r:nwebspawn:s0"); + pid_t pid = getpid(); + setpriority(PRIO_PROCESS, pid, 0); struct __user_cap_header_struct capHeader; capHeader.version = _LINUX_CAPABILITY_VERSION_3; capHeader.pid = 0; diff --git a/adapter/nwebspawn_lancher.h b/adapter/nwebspawn_lancher.h index d41f7031..bd617d2e 100644 --- a/adapter/nwebspawn_lancher.h +++ b/adapter/nwebspawn_lancher.h @@ -17,6 +17,7 @@ #define NWEBSPAWNLANCHER_CPP #include "selinux/selinux.h" #include +#include #include #include #include