适配hitrace的selinux规则

Signed-off-by: hw-wLiu <liuwei573@huawei.com>
This commit is contained in:
hw-wLiu
2022-10-24 08:29:11 +00:00
committed by Gitee
parent 6ad493356d
commit 874aabc36e
+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);