mirror of
https://github.com/openharmony/developtools_bytrace.git
synced 2026-07-15 06:07:13 -04:00
!116 #I5XE9B适配hitrace的selinux规则2
Merge pull request !116 from hw-wLiu/monthly_20221018
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user