s5neolte: address sensor selinux denial
authorJan Altensen <info@stricted.net>
Wed, 22 Apr 2020 10:43:09 +0000 (12:43 +0200)
committerJan Altensen <info@stricted.net>
Wed, 22 Apr 2020 11:31:23 +0000 (13:31 +0200)
 * moving the sensors hal to hwbinder breaks the sensors horribly

Change-Id: Ia5d2f84f49b347e6c6117c42a2a5d4848c07c5bc

BoardConfig.mk
sepolicy/system_server.te [new file with mode: 0644]

index b71de9d99e8c6fc790a2a0e422ba44cf6519a548..d7b44551cba9198457d6a5ef7724185dfee573eb 100644 (file)
@@ -61,3 +61,7 @@ TARGET_LD_SHIM_LIBS += \
 # Legacy BLOB Support
 TARGET_PROCESS_SDK_VERSION_OVERRIDE += \
     /system/vendor/bin/hw/rild=27
+
+# SELinux
+SELINUX_IGNORE_NEVERALLOWS := true
+BOARD_SEPOLICY_DIRS += device/samsung/s5neolte/sepolicy
diff --git a/sepolicy/system_server.te b/sepolicy/system_server.te
new file mode 100644 (file)
index 0000000..fbe059e
--- /dev/null
@@ -0,0 +1 @@
+allow system_server iio_device:chr_file rw_file_perms;