disable pid ns

Signed-off-by: cbl <caobaolong5@huawei.com>
This commit is contained in:
cbl 2024-05-21 14:45:59 +08:00
parent fd13a58261
commit 42242ba1a7
4 changed files with 4 additions and 10 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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)