From 56ca7bbac20c4158dbcdc1a5fde28732ca100f14 Mon Sep 17 00:00:00 2001 From: Erfan Abdi Date: Mon, 3 May 2021 17:06:36 +0430 Subject: [PATCH] anbox: Provide sw_sync node for HWC --- lxc-configs/config | 4 ++++ scripts/run-container.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lxc-configs/config b/lxc-configs/config index 118810f..9dea340 100644 --- a/lxc-configs/config +++ b/lxc-configs/config @@ -62,4 +62,8 @@ lxc.mount.entry = /vendor vendor_extra none bind,optional 0 0 # Recursive mount /run to provide necessary host sockets lxc.mount.entry = /run run none rbind,create=dir 0 0 +# Necessary sw_sync node for HWC +lxc.mount.entry = /dev/sw_sync dev/sw_sync none bind,create=file,optional 0 0 +lxc.mount.entry = /sys/kernel/debug sys/kernel/debug none rbind,create=dir,optional 0 0 + lxc.hook.post-stop = /dev/null diff --git a/scripts/run-container.sh b/scripts/run-container.sh index b0cd87c..9607967 100644 --- a/scripts/run-container.sh +++ b/scripts/run-container.sh @@ -31,4 +31,8 @@ chmod 666 /dev/anbox-*binder # Wayland socket permissions chmod 777 -R /run/user/32011 +# Set sw_sync permissions +chmod 777 /dev/sw_sync +chmod 777 /sys/kernel/debug/sync/sw_sync + lxc-start -n anbox -F -- /init -- 2.47.3