X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/a3d741d7d54df55efe4f13318d9393960f1eaa1b..68ed713ca10e9570ec0dbea72a3ba04a4ca54b4e:/tools/helpers/lxc.py diff --git a/tools/helpers/lxc.py b/tools/helpers/lxc.py index a099801..a13f838 100644 --- a/tools/helpers/lxc.py +++ b/tools/helpers/lxc.py @@ -137,6 +137,7 @@ def set_lxc_config(args): elif lxc_ver <= 2: config_file = "config_1" config_path = tools.config.tools_src + "/data/configs/" + config_file + seccomp_profile = tools.config.tools_src + "/data/configs/waydroid.seccomp" command = ["mkdir", "-p", lxc_path] tools.helpers.run.user(args, command) @@ -144,6 +145,8 @@ def set_lxc_config(args): tools.helpers.run.user(args, command) command = ["sed", "-i", "s/LXCARCH/{}/".format(platform.machine()), lxc_path + "/config"] tools.helpers.run.user(args, command) + command = ["cp", "-fpr", seccomp_profile, lxc_path + "/waydroid.seccomp"] + tools.helpers.run.user(args, command) nodes = generate_nodes_lxc_config(args) config_nodes_tmp_path = args.work + "/config_nodes"