Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
766b2c7f
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
766b2c7f
编写于
4月 29, 2022
作者:
M
Mupceet
提交者:
Gitee
4月 29, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of gitee.com:openharmony/startup_init_lite into param_init0428
Signed-off-by:
N
Mupceet
<
laiguizhong@huawei.com
>
上级
fb70d296
b9d5604c
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
36 addition
and
3 deletion
+36
-3
interfaces/innerkits/sandbox/app-sandbox64.json
interfaces/innerkits/sandbox/app-sandbox64.json
+16
-0
interfaces/innerkits/sandbox/privapp-sandbox64.json
interfaces/innerkits/sandbox/privapp-sandbox64.json
+8
-0
services/BUILD.gn
services/BUILD.gn
+7
-0
services/begetctl/misc_daemon.cpp
services/begetctl/misc_daemon.cpp
+2
-2
services/etc/group
services/etc/group
+1
-0
services/etc/passwd
services/etc/passwd
+1
-0
ueventd/ueventd_device_handler.c
ueventd/ueventd_device_handler.c
+1
-1
未找到文件。
interfaces/innerkits/sandbox/app-sandbox64.json
浏览文件 @
766b2c7f
...
...
@@ -44,6 +44,22 @@
"src-path"
:
"/data"
,
"sandbox-path"
:
"/data"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/system/fonts"
,
"sandbox-path"
:
"/system/fonts"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/config"
,
"sandbox-path"
:
"/config"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/sys_prod"
,
"sandbox-path"
:
"/sys_prod"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/storage"
,
"sandbox-path"
:
"/storage"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
}
],
"mount-bind-files"
:
[{
...
...
interfaces/innerkits/sandbox/privapp-sandbox64.json
浏览文件 @
766b2c7f
...
...
@@ -48,6 +48,14 @@
"src-path"
:
"/data"
,
"sandbox-path"
:
"/data"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},{
"src-path"
:
"/storage"
,
"sandbox-path"
:
"/storage"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/system/fonts"
,
"sandbox-path"
:
"/system/fonts"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
}
],
"mount-bind-files"
:
[{
...
...
services/BUILD.gn
浏览文件 @
766b2c7f
...
...
@@ -421,6 +421,12 @@ if (defined(ohos_lite)) {
module_install_dir = "etc/sandbox"
}
ohos_prebuilt_etc("appdata-sandbox.json") {
source = "//base/startup/appspawn_standard/appdata-sandbox.json"
part_name = "init"
module_install_dir = "etc/sandbox"
}
ohos_prebuilt_etc("init.reboot") {
source = "//base/startup/init_lite/services/etc/init.reboot.cfg"
part_name = "init"
...
...
@@ -430,6 +436,7 @@ if (defined(ohos_lite)) {
group("init_etc") {
deps = [
":app-sandbox.json",
":appdata-sandbox.json",
":boot.group",
":charing.group",
":chipset-sandbox.json",
...
...
services/begetctl/misc_daemon.cpp
浏览文件 @
766b2c7f
...
...
@@ -87,8 +87,8 @@ static void WriteLogoContent(int fd, const std::string &logoPath, uint32_t size)
free
(
buffer
);
return
;
}
uint32
_t
ret
=
write
(
fd
,
buffer
,
size
);
if
(
ret
!=
size
)
{
ssize
_t
ret
=
write
(
fd
,
buffer
,
size
);
if
(
ret
==
-
1
||
ret
!=
size
)
{
(
void
)
fclose
(
rgbFile
);
free
(
buffer
);
return
;
...
...
services/etc/group
浏览文件 @
766b2c7f
...
...
@@ -66,6 +66,7 @@ device_usage_stats:x:3048:
faceauth_host:x:3049:
pinauth_host:x:3050:
dms:x:5522:
update:x:6666:
sensor:x:6688:
input:x:6696:
msdp:x:6699:
...
...
services/etc/passwd
浏览文件 @
766b2c7f
...
...
@@ -67,6 +67,7 @@ faceauth_host:x:3049:3049:::/bin/false
pinauth_host:x:3050:3050:::/bin/false
dms:x:5522:5522:::/bin/false
dbms:x:6000:6000:::/bin/false
update:x:6666:6666:::/bin/false
sensor:x:6688:6688:::/bin/false
input:x:6696:6696:::/bin/false
msdp:x:6699:6699:::/bin/false
...
...
ueventd/ueventd_device_handler.c
浏览文件 @
766b2c7f
...
...
@@ -182,7 +182,7 @@ static int RemoveDeviceNode(const char *deviceNode, char **symLinks)
}
if
(
symLinks
!=
NULL
)
{
for
(
int
i
=
0
;
symLinks
[
i
]
!=
NULL
;
i
++
)
{
char
realPath
[
DEVICE_FILE_SIZE
]
=
{};
char
realPath
[
DEVICE_FILE_SIZE
]
=
{
0
};
const
char
*
linkName
=
symLinks
[
i
];
ssize_t
ret
=
readlink
(
linkName
,
realPath
,
DEVICE_FILE_SIZE
-
1
);
if
(
ret
<
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录