aboutsummaryrefslogtreecommitdiffstats
path: root/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'selinux')
-rw-r--r--selinux/domain.te3
-rw-r--r--selinux/file_contexts3
-rw-r--r--selinux/wpa_supplicant.te2
3 files changed, 4 insertions, 4 deletions
diff --git a/selinux/domain.te b/selinux/domain.te
index 7cf1def..ebb4d8b 100644
--- a/selinux/domain.te
+++ b/selinux/domain.te
@@ -1,8 +1,5 @@
## Pvrsrvinit
allow domain powervr_device:chr_file rw_file_perms;
-## /dev/rfkill for wpa_supp
-allow wpa rfkill_device:chr_file rw_file_perms;
-
## Firmwares
allow ueventd { firmware_ducati }:file r_file_perms;
diff --git a/selinux/file_contexts b/selinux/file_contexts
index a64887a..2c0d875 100644
--- a/selinux/file_contexts
+++ b/selinux/file_contexts
@@ -18,8 +18,9 @@
# GPS
/dev/ttyO0 u:object_r:gps_device:s0
-# for wpa_supp
+# Wifi
/dev/rfkill u:object_r:rfkill_device:s0
+/efs/wifi/.mac.info u:object_r:wifi_data_file:s0
# System binaries
/system/vendor/bin/pvrsrvinit u:object_r:pvrsrvinit_exec:s0
diff --git a/selinux/wpa_supplicant.te b/selinux/wpa_supplicant.te
new file mode 100644
index 0000000..f93d624
--- /dev/null
+++ b/selinux/wpa_supplicant.te
@@ -0,0 +1,2 @@
+allow wpa_socket wifi_data_file:sock_file unlink;
+allow wpa rfkill_device:chr_file rw_file_perms;