Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
be6db75a
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
8 个月 前同步成功
通知
3
Star
37
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Init Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
be6db75a
编写于
1月 27, 2022
作者:
O
openharmony_ci
提交者:
Gitee
1月 27, 2022
浏览文件
操作
浏览文件
下载
差异文件
!275 fix :bugs
Merge pull request !275 from 熊磊/week127
上级
25662c24
e984d13f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
5 deletion
+14
-5
services/etc/group
services/etc/group
+1
-0
services/etc/init.cfg
services/etc/init.cfg
+1
-0
services/etc/passwd
services/etc/passwd
+1
-0
services/param/BUILD.gn
services/param/BUILD.gn
+6
-0
services/param/adapter/param_dac.c
services/param/adapter/param_dac.c
+4
-0
services/param/watcher/BUILD.gn
services/param/watcher/BUILD.gn
+1
-5
未找到文件。
services/etc/group
浏览文件 @
be6db75a
...
...
@@ -27,6 +27,7 @@ net_bw_acct:x:3007:
readproc:x:3009:
wakelock:x:3010:
uhid:x:3011:
ddms:x:3012:
access_token:x:3020:
misc:x:9998:
app:x:10000:
services/etc/init.cfg
浏览文件 @
be6db75a
...
...
@@ -198,6 +198,7 @@
"mkdir /data/service/el0 0711 root root",
"mkdir /data/service/el1 0711 root root",
"mkdir /data/service/el1/public 0711 root root",
"mkdir /data/service/el1/public/AbilityManagerService 0711 system system",
"mkdir /data/service/el2 0711 root root",
"mkdir /data/chipset 0711 root root",
"mkdir /data/chipset/el1 0711 root root",
...
...
services/etc/passwd
浏览文件 @
be6db75a
...
...
@@ -27,6 +27,7 @@ net_bw_acct:x:3007:3007:::/bin/false
readproc:x:3009:3009:::/bin/false
wakelock:x:3010:3010:::/bin/false
uhid:x:3011:3011:::/bin/false
ddms:x:3012:3012:::/bin/false
access_token:x:3020:3020:::/bin/false
misc:x:9998:9998:::/bin/false
app:x:10000:10000:::/bin/false
services/param/BUILD.gn
浏览文件 @
be6db75a
...
...
@@ -52,6 +52,9 @@ ohos_static_library("param_service") {
} else {
sources += [ "adapter/param_dac.c" ]
defines += [ "PARAM_SUPPORT_DAC" ]
if (use_musl) {
defines += [ "PARAM_SUPPORT_DAC_CHECK" ]
}
}
deps = [
...
...
@@ -93,6 +96,9 @@ ohos_shared_library("param_client") {
} else {
sources += [ "adapter/param_dac.c" ]
defines += [ "PARAM_SUPPORT_DAC" ]
if (use_musl) {
defines += [ "PARAM_SUPPORT_DAC_CHECK" ]
}
}
deps = [
...
...
services/param/adapter/param_dac.c
浏览文件 @
be6db75a
...
...
@@ -217,6 +217,9 @@ static int CheckUserInGroup(gid_t groupId, uid_t uid)
static
int
CheckParamPermission
(
const
ParamSecurityLabel
*
srcLabel
,
const
ParamAuditData
*
auditData
,
uint32_t
mode
)
{
#ifndef PARAM_SUPPORT_DAC_CHECK
return
DAC_RESULT_PERMISSION
;
#else
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
);
...
...
@@ -243,6 +246,7 @@ static int CheckParamPermission(const ParamSecurityLabel *srcLabel, const ParamA
auditData
->
dacData
.
gid
,
auditData
->
dacData
.
uid
,
auditData
->
dacData
.
mode
);
PARAM_LOGV
(
"%s check %o localMode %o ret %d"
,
auditData
->
name
,
mode
,
localMode
,
ret
);
return
ret
;
#endif
}
PARAM_STATIC
int
RegisterSecurityDacOps
(
ParamSecurityOps
*
ops
,
int
isInit
)
...
...
services/param/watcher/BUILD.gn
浏览文件 @
be6db75a
...
...
@@ -13,11 +13,7 @@
import("//build/ohos.gni")
ohos_prebuilt_etc("param_watcher.rc") {
if (use_musl) {
source = "etc/param_watcher.cfg"
} else {
source = "etc/param_watcher.rc"
}
source = "etc/param_watcher.cfg"
relative_install_dir = "init"
part_name = "init"
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录