# Recursive mount /run to provide necessary host sockets
make_entry("/run", options="rbind,create=dir 0 0")
# Recursive mount /run to provide necessary host sockets
make_entry("/run", options="rbind,create=dir 0 0")
enabled = (tools.helpers.run.user(args, ["aa-status", "--quiet"], check=False) == 0)
if not enabled and shutil.which("systemctl"):
enabled = (tools.helpers.run.user(args, ["systemctl", "is-active", "-q", "apparmor"], check=False) == 0)
enabled = (tools.helpers.run.user(args, ["aa-status", "--quiet"], check=False) == 0)
if not enabled and shutil.which("systemctl"):
enabled = (tools.helpers.run.user(args, ["systemctl", "is-active", "-q", "apparmor"], check=False) == 0)
seccomp_profile = tools.config.tools_src + "/data/configs/waydroid.seccomp"
config_snippets = [ config_paths + "base" ]
seccomp_profile = tools.config.tools_src + "/data/configs/waydroid.seccomp"
config_snippets = [ config_paths + "base" ]
snippet = config_paths + str(ver)
if lxc_ver >= ver and os.path.exists(snippet):
config_snippets.append(snippet)
snippet = config_paths + str(ver)
if lxc_ver >= ver and os.path.exists(snippet):
config_snippets.append(snippet)
command = ["lxc-attach", "-P", tools.config.defaults["lxc"],
"-n", "waydroid", "--"]
if args.COMMAND:
command = ["lxc-attach", "-P", tools.config.defaults["lxc"],
"-n", "waydroid", "--"]
if args.COMMAND:
else:
command.append("/system/bin/sh")
subprocess.run(command, env={"PATH": os.environ['PATH'] + ":/system/bin:/vendor/bin"})
else:
command.append("/system/bin/sh")
subprocess.run(command, env={"PATH": os.environ['PATH'] + ":/system/bin:/vendor/bin"})