!116 #I5XE9B适配hitrace的selinux规则2

Merge pull request !116 from hw-wLiu/monthly_20221018
This commit is contained in:
openharmony_ci
2022-10-25 03:02:27 +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);