提交 d7f51eda 编写于 作者: X xionglei6

fix:增加selinux属性校验

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 f85f4abf
...@@ -244,9 +244,9 @@ int CheckParamPermissionWithSelinux(const ParamSecurityLabel *srcLabel, const ch ...@@ -244,9 +244,9 @@ int CheckParamPermissionWithSelinux(const ParamSecurityLabel *srcLabel, const ch
} }
static void (*setSelinuxLogCallback)(); static void (*setSelinuxLogCallback)();
static int (*setParamCheck)(const char *paraName, struct ucred *uc); static int (*setParamCheck)(const char *paraName, struct ucred *uc);
g_selinuxHandle = dlopen("/system/lib/libparaperm_checker_static.so", RTLD_LAZY); g_selinuxHandle = dlopen("/system/lib/libparaperm_checker.so", RTLD_LAZY);
if (g_selinuxHandle == NULL) { if (g_selinuxHandle == NULL) {
PARAM_LOGE("Failed to dlopen libparaperm_checker_static.so, %s\n", dlerror()); PARAM_LOGE("Failed to dlopen libparaperm_checker.so, %s\n", dlerror());
return DAC_RESULT_FORBIDED; return DAC_RESULT_FORBIDED;
} }
if (setSelinuxLogCallback == NULL) { if (setSelinuxLogCallback == NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册