summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BoardConfigCommon.mk8
-rw-r--r--sepolicy/file_contexts5
2 files changed, 13 insertions, 0 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index 61419bc..414ad4e 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -102,6 +102,14 @@ MAX_EGL_CACHE_SIZE := 2048*1024
# Init
TARGET_INIT_VENDOR_LIB := libinit_shinano
+# SELinux
+BOARD_SEPOLICY_DIRS += \
+ device/sony/shinano-common/sepolicy
+
+# The list below is order dependent
+BOARD_SEPOLICY_UNION := \
+ file_contexts
+
# Wifi
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WLAN_DEVICE := bcmdhd
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
new file mode 100644
index 0000000..b9b73f0
--- /dev/null
+++ b/sepolicy/file_contexts
@@ -0,0 +1,5 @@
+# NFC
+/dev/pn547 u:object_r:nfc_device:s0
+
+# Audio
+/dev/tfa98xx u:object_r:audio_device:s0