From be0b90541d0e6db06670e5adce4bce1e18d1cfea Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Tue, 21 Aug 2018 23:23:40 +0200 Subject: [PATCH] We need to be setuid to allow transitions --- rw-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 3895b89..f929e80 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -19,7 +19,7 @@ fixSPL() { setprop ro.keymaster.xxx.security_patch "$(getSPL $img spl)" mkdir -p /mnt/phh/ - mount -t tmpfs -o rw,nosuid,nodev,relatime,mode=755,gid=0 none /mnt/phh || true + mount -t tmpfs -o rw,nodev,relatime,mode=755,gid=0 none /mnt/phh || true for f in /vendor/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so /vendor/lib/hw/android.hardware.keymaster@3.0-impl-qti.so /system/lib64/vndk-26/libsoftkeymasterdevice.so /vendor/bin/teed /system/lib64/vndk/libsoftkeymasterdevice.so /system/lib/vndk/libsoftkeymasterdevice.so /system/lib/vndk-26/libsoftkeymasterdevice.so;do [ ! -f $f ] && continue ctxt="$(ls -lZ $f |grep -oE 'u:object_r:[^:]*:s0')"