!111 #I5WE1X适配bytrace的selinux规则的修改

Merge pull request !111 from hw-wLiu/bytracesetgid1020
This commit is contained in:
openharmony_ci
2022-10-20 09:16:05 +00:00
committed by Gitee
+2
View File
@@ -51,6 +51,7 @@ struct option g_longOptions[] = {
};
const unsigned int CHUNK_SIZE = 65536;
const int BLOCK_SIZE = 4096;
const int SHELL_UID = 2000;
const string TRACE_TAG_PROPERTY = "debug.hitrace.tags.enableflags";
@@ -897,6 +898,7 @@ static void InterruptExit(int signo)
int main(int argc, char **argv)
{
setgid(SHELL_UID);
(void)signal(SIGKILL, InterruptExit);
(void)signal(SIGINT, InterruptExit);