提交 84f141de 编写于 作者: 熊磊 提交者: Gitee

Merge branch 'master' of gitee.com:openharmony/startup_init_lite into 0412xytcfg

Signed-off-by: Nxionglei <xionglei6@huawei.com>
......@@ -135,9 +135,9 @@
"copy /data/system/entropy.dat /dev/urandom",
"mkdir /data/misc 01771 system misc",
"mkdir /data/misc/zoneinfo 0775 system system",
"mkdir /data/misc/wifi 0770 system system",
"mkdir /data/misc/wifi/sockets 0770 system system",
"mkdir /data/misc/wifi/wpa_supplicant 0770 system system",
"mkdir /data/misc/wifi 0770 wifi wifi",
"mkdir /data/misc/wifi/sockets 0770 wifi wifi",
"mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi",
"mkdir /data/local 0751 root root",
"mkdir /data/preloads 0775 system system",
"mkdir /data/vendor 0771 root root",
......
......@@ -230,7 +230,9 @@ static int CheckParamPermission(const ParamSecurityLabel *srcLabel, const ParamA
int ret = DAC_RESULT_FORBIDED;
PARAM_CHECK(srcLabel != NULL && auditData != NULL && auditData->name != NULL, return ret, "Invalid param");
PARAM_CHECK((mode & (DAC_READ | DAC_WRITE | DAC_WATCH)) != 0, return ret, "Invalid mode %x", mode);
if (srcLabel->cred.uid == 0) {
return DAC_RESULT_PERMISSION;
}
/**
* DAC group 实现的label的定义
* user:group:read|write|watch
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册