!2187 FIX:修复对uid=0进行处理告警时造成的测试用例跑不通问题

Merge pull request !2187 from YinZong/start_init_fix_uid
This commit is contained in:
openharmony_ci 2023-08-11 08:44:00 +00:00 committed by Gitee
commit 39490f22ec
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -308,11 +308,13 @@ class SeccompPolicyParam:
self.final_priority |= self.priority
self.final_allow_list_with_args |= self.allow_list_with_args
self.final_priority_with_args |= self.priority_with_args
final_priority_function_name_list_with_args = set(item[:item.find(':')] for item in self.final_priority_with_args)
final_function_name_list_with_args = set(item[:item.find(':')] for item in self.final_allow_list_with_args)
self.final_allow_list |= self.final_allow_list - self.final_priority - \
final_priority_function_name_list_with_args = set(item[:item.find(':')]
for item in self.final_priority_with_args)
final_function_name_list_with_args = set(item[:item.find(':')]
for item in self.final_allow_list_with_args)
self.final_allow_list = self.final_allow_list - self.final_priority - \
final_priority_function_name_list_with_args - final_function_name_list_with_args
self.final_priority |= self.final_priority - final_priority_function_name_list_with_args - \
self.final_priority = self.final_priority - final_priority_function_name_list_with_args - \
final_function_name_list_with_args
self.clear_list()