未验证 提交 51014d2a 编写于 作者: O openharmony_ci 提交者: Gitee

!2077 解决arm64架构下libxxx_filter.z.so编译前后镜像不一致的问题

Merge pull request !2077 from 夏不白/image_content_need_same
......@@ -900,7 +900,7 @@ class SeccompPolicyParser:
self.bpf_generator.add_return_value(cur_policy_param.return_value)
def gen_seccomp_policy(self):
arches = list(self.arches)
arches = sorted(list(self.arches))
if not arches:
return
self.gen_seccomp_policy_of_arch(arches[0])
......@@ -942,7 +942,6 @@ class SeccompPolicyParser:
content = header + '\n'.join(extra_header_list) + array_name + \
' ' + '\n '.join(self.bpf_generator.bpf_policy) + footer
flags = os.O_WRONLY | os.O_CREAT | os.O_TRUNC
modes = stat.S_IWUSR | stat.S_IRUSR | stat.S_IWGRP | stat.S_IRGRP
with os.fdopen(os.open(args.dst_file, flags, modes), 'w') as output_file:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册