Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
1205c360
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看板
提交
1205c360
编写于
5月 25, 2022
作者:
M
Mupceet
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init: fix 64 bit sandbox
Signed-off-by:
N
Mupceet
<
laiguizhong@huawei.com
>
上级
b1822e6c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
314 deletion
+8
-314
interfaces/innerkits/sandbox/BUILD.gn
interfaces/innerkits/sandbox/BUILD.gn
+3
-0
interfaces/innerkits/sandbox/app-sandbox.json
interfaces/innerkits/sandbox/app-sandbox.json
+0
-78
interfaces/innerkits/sandbox/app-sandbox64.json
interfaces/innerkits/sandbox/app-sandbox64.json
+0
-78
interfaces/innerkits/sandbox/privapp-sandbox.json
interfaces/innerkits/sandbox/privapp-sandbox.json
+0
-82
interfaces/innerkits/sandbox/privapp-sandbox64.json
interfaces/innerkits/sandbox/privapp-sandbox64.json
+0
-74
interfaces/innerkits/sandbox/sandbox.c
interfaces/innerkits/sandbox/sandbox.c
+5
-2
未找到文件。
interfaces/innerkits/sandbox/BUILD.gn
浏览文件 @
1205c360
...
...
@@ -20,6 +20,9 @@ config("exported_header_files") {
}
ohos_shared_library("libsandbox") {
if (target_cpu == "arm64") {
defines = [ "SUPPORT_64BIT" ]
}
sources = [
"sandbox.c",
"sandbox_namespace.c",
...
...
interfaces/innerkits/sandbox/app-sandbox.json
已删除
100644 → 0
浏览文件 @
b1822e6c
{
"sandbox-root"
:
"/mnt/sandbox/app"
,
"mount-bind-paths"
:
[{
"src-path"
:
"/mnt"
,
"sandbox-path"
:
"/mnt"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/system/bin"
,
"sandbox-path"
:
"/system/bin"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/system/lib"
,
"sandbox-path"
:
"/system/lib"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/system/lib/module"
,
"sandbox-path"
:
"/system/lib/module"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/system/etc"
,
"sandbox-path"
:
"/system/etc"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/sys/kernel/debug/tracing"
,
"sandbox-path"
:
"/sys/kernel/debug/tracing"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/sys/kernel/debug"
,
"sandbox-path"
:
"/sys/kernel/debug"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/sys"
,
"sandbox-path"
:
"/sys"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/proc"
,
"sandbox-path"
:
"/proc"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/dev"
,
"sandbox-path"
:
"/dev"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"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"
:
[{
}],
"symbol-links"
:
[{
"target-name"
:
"/system/bin"
,
"link-name"
:
"/bin"
},
{
"target-name"
:
"/system/lib"
,
"link-name"
:
"/lib"
},
{
"target-name"
:
"/system/etc"
,
"link-name"
:
"/etc"
}
]
}
interfaces/innerkits/sandbox/app-sandbox64.json
已删除
100644 → 0
浏览文件 @
b1822e6c
{
"sandbox-root"
:
"/mnt/sandbox/app"
,
"mount-bind-paths"
:
[{
"src-path"
:
"/mnt"
,
"sandbox-path"
:
"/mnt"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/system/bin"
,
"sandbox-path"
:
"/system/bin"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/system/lib64"
,
"sandbox-path"
:
"/system/lib64"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/system/lib64/module"
,
"sandbox-path"
:
"/system/lib64/module"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/system/etc"
,
"sandbox-path"
:
"/system/etc"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"src-path"
:
"/sys/kernel/debug/tracing"
,
"sandbox-path"
:
"/sys/kernel/debug/tracing"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/sys/kernel/debug"
,
"sandbox-path"
:
"/sys/kernel/debug"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/sys"
,
"sandbox-path"
:
"/sys"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/proc"
,
"sandbox-path"
:
"/proc"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/dev"
,
"sandbox-path"
:
"/dev"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
,
"private"
]
},
{
"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"
:
[{
}],
"symbol-links"
:
[{
"target-name"
:
"/system/bin"
,
"link-name"
:
"/bin"
},
{
"target-name"
:
"/system/lib64"
,
"link-name"
:
"/lib64"
},
{
"target-name"
:
"/system/etc"
,
"link-name"
:
"/etc"
}
]
}
interfaces/innerkits/sandbox/privapp-sandbox.json
已删除
100644 → 0
浏览文件 @
b1822e6c
{
"sandbox-root"
:
"/mnt/sandbox/priv-app"
,
"mount-bind-paths"
:
[{
"src-path"
:
"/mnt"
,
"sandbox-path"
:
"/mnt"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/system/bin"
,
"sandbox-path"
:
"/system/bin"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/system/bin"
,
"sandbox-path"
:
"/system/common/bin"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/system/lib"
,
"sandbox-path"
:
"/system/lib"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/system/lib/module"
,
"sandbox-path"
:
"/system/lib/module"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/system/etc"
,
"sandbox-path"
:
"/system/etc"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/sys/kernel/debug/tracing"
,
"sandbox-path"
:
"/sys/kernel/debug/tracing"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/sys/kernel/debug"
,
"sandbox-path"
:
"/sys/kernel/debug"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/sys"
,
"sandbox-path"
:
"/sys"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/proc"
,
"sandbox-path"
:
"/proc"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/dev"
,
"sandbox-path"
:
"/dev"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/data"
,
"sandbox-path"
:
"/data"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"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"
:
[{
}],
"symbol-links"
:
[{
"target-name"
:
"/system/bin"
,
"link-name"
:
"/bin"
},
{
"target-name"
:
"/system/lib"
,
"link-name"
:
"/lib"
},
{
"target-name"
:
"/system/etc"
,
"link-name"
:
"/etc"
}
]
}
interfaces/innerkits/sandbox/privapp-sandbox64.json
已删除
100644 → 0
浏览文件 @
b1822e6c
{
"sandbox-root"
:
"/mnt/sandbox/priv-app"
,
"mount-bind-paths"
:
[{
"src-path"
:
"/mnt"
,
"sandbox-path"
:
"/mnt"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/system/bin"
,
"sandbox-path"
:
"/system/bin"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/system/bin"
,
"sandbox-path"
:
"/system/common/bin"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/system/lib64"
,
"sandbox-path"
:
"/system/lib64"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/system/lib64/module"
,
"sandbox-path"
:
"/system/lib64/module"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/system/etc"
,
"sandbox-path"
:
"/system/etc"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/sys/kernel/debug/tracing"
,
"sandbox-path"
:
"/sys/kernel/debug/tracing"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/sys/kernel/debug"
,
"sandbox-path"
:
"/sys/kernel/debug"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/sys"
,
"sandbox-path"
:
"/sys"
,
"sandbox-flags"
:
[
"bind"
,
"private"
]
},
{
"src-path"
:
"/proc"
,
"sandbox-path"
:
"/proc"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"src-path"
:
"/dev"
,
"sandbox-path"
:
"/dev"
,
"sandbox-flags"
:
[
"bind"
,
"rec"
]
},
{
"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"
:
[{
}],
"symbol-links"
:
[{
"target-name"
:
"/system/bin"
,
"link-name"
:
"/bin"
},
{
"target-name"
:
"/system/lib64"
,
"link-name"
:
"/lib64"
},
{
"target-name"
:
"/system/etc"
,
"link-name"
:
"/etc"
}
]
}
interfaces/innerkits/sandbox/sandbox.c
浏览文件 @
1205c360
...
...
@@ -38,10 +38,13 @@
#define SANDBOX_SYMLINK_TARGET "target-name"
#define SANDBOX_SYMLINK_NAME "link-name"
#ifndef SUPPORT_64BIT
#define SANDBOX_SYSTEM_CONFIG_FILE "/system/etc/sandbox/system-sandbox.json"
#define SANDBOX_CHIPSET_CONFIG_FILE "/system/etc/sandbox/chipset-sandbox.json"
#define SANDBOX_PRIVAPP_CONFIG_FILE "/system/etc/sandbox/privapp-sandbox.json"
#define SANDBOX_APP_CONFIG_FILE "/system/etc/sandbox/app-sandbox.json"
#else
#define SANDBOX_SYSTEM_CONFIG_FILE "/system/etc/sandbox/system-sandbox64.json"
#define SANDBOX_CHIPSET_CONFIG_FILE "/system/etc/sandbox/chipset-sandbox64.json"
#endif
#define SANDBOX_MOUNT_FLAGS_MS_BIND "bind"
#define SANDBOX_MOUNT_FLAGS_MS_PRIVATE "private"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录