mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-30 10:40:33 +00:00
commit
cf8b1d46a2
@ -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;
|
||||
|
@ -17,6 +17,7 @@
|
||||
#define NWEBSPAWNLANCHER_CPP
|
||||
#include "selinux/selinux.h"
|
||||
#include <sys/capability.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <unistd.h>
|
||||
#include <sched.h>
|
||||
|
Loading…
Reference in New Issue
Block a user