mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-12-04 13:28:42 +00:00
disable pid ns
Signed-off-by: cbl <caobaolong5@huawei.com>
This commit is contained in:
parent
fd13a58261
commit
42242ba1a7
@ -3,7 +3,7 @@
|
||||
"top-sandbox-switch": "ON",
|
||||
"app-base" : [{
|
||||
"sandbox-root" : "/mnt/sandbox/<PackageName>",
|
||||
"sandbox-ns-flags" : ["pid"],
|
||||
"sandbox-ns-flags" : [],
|
||||
"mount-paths" : [ {
|
||||
"src-path" : "/system/asan/lib",
|
||||
"sandbox-path" : "/system/asan/lib",
|
||||
|
@ -2,7 +2,7 @@
|
||||
"common" : [{
|
||||
"top-sandbox-switch": "ON",
|
||||
"app-base" : [{
|
||||
"sandbox-ns-flags" : [ "pid" ],
|
||||
"sandbox-ns-flags" : [],
|
||||
"mount-paths" : [{
|
||||
"src-path" : "/config",
|
||||
"sandbox-path" : "/config",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"top-sandbox-switch": "ON",
|
||||
"app-base" : [{
|
||||
"sandbox-root" : "/mnt/sandbox/<PackageName>",
|
||||
"sandbox-ns-flags" : [ "pid" ],
|
||||
"sandbox-ns-flags" : [],
|
||||
"mount-paths" : [{
|
||||
"src-path" : "/system/lib",
|
||||
"sandbox-path" : "/system/lib",
|
||||
|
@ -117,7 +117,7 @@ def _merge_scope_app(origin, new):
|
||||
"symbol-links": ["target-name"]
|
||||
}
|
||||
# normal filed
|
||||
for k in ["sandbox-root", "sandbox-switch", "gids", "sandbox-ns-flags"]:
|
||||
for k in ["sandbox-root", "sandbox-switch", "gids"]:
|
||||
if new[0].get(k) is not None:
|
||||
origin[0][k] = new[0].get(k)
|
||||
|
||||
@ -126,12 +126,6 @@ def _merge_scope_app(origin, new):
|
||||
if flags_points:
|
||||
_merge_scope_flags_point(origin[0]["flags-point"], flags_points)
|
||||
|
||||
# by list merger
|
||||
for field in ["sandbox-ns-flags"]:
|
||||
item = origin[0].get(field)
|
||||
if item is not None and len(item) > 0:
|
||||
_merge_list(new[0][field], item)
|
||||
|
||||
# for array
|
||||
for name, keys in field_infos.items():
|
||||
item = new[0].get(name)
|
||||
|
Loading…
Reference in New Issue
Block a user