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

!1921 更改seccomp插件在init进程中的安装时间点

Merge pull request !1921 from 夏不白/change_seccomp_hook_order
......@@ -121,7 +121,7 @@ static bool GetFilterFileByName(const char *filterName, char *filterLibRealPath,
}
// allow only one path to a seccomp shared library to avoid shared library replaced
if (seccompPathNum == 1) {
if (seccompPathNum == 1 && files && files->paths[0]) {
if (memcpy_s(filterLibRealPath, pathSize, files->paths[0], strlen(files->paths[0]) + 1) == EOK) {
flag = true;
}
......
......@@ -53,5 +53,5 @@ static int SeccompHook(const HOOK_INFO *info, void *cookie)
MODULE_CONSTRUCTOR(void)
{
InitAddPostPersistParamLoadHook(0, SeccompHook);
InitAddPostCfgLoadHook(0, SeccompHook);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册