]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
anbox: Provide sw_sync node for HWC
authorErfan Abdi <erfangplus@gmail.com>
Mon, 3 May 2021 12:36:36 +0000 (17:06 +0430)
committerErfan Abdi <erfangplus@gmail.com>
Mon, 3 May 2021 12:36:36 +0000 (17:06 +0430)
lxc-configs/config
scripts/run-container.sh

index 118810f088a6d84968fe463915fc334521d62464..9dea340c39b3fbbf2772b5f292932148d11a889d 100644 (file)
@@ -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
index b0cd87c9c00d26b21bba2aa7abb086096774f0ee..96079679e1025c8eeb3bfd6f95817c40b8e6d71b 100644 (file)
@@ -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