Commits

Nick Kralevich  committed 9969bdb Merge

Merge "Allow access to sysfs files."

  • Participants
  • Parent commits 799c956, 7b97740

Comments (0)

Files changed (5)

File BoardConfigCommon.mk

 BOARD_SEPOLICY_UNION += \
         file_contexts \
         genfs_contexts \
+        bluetooth.te \
         device.te \
         drmserver.te \
         init_shell.te \

File sepolicy/bluetooth.te

+# Kernel bug for Linux < 3.3: sysfs inodes can lose their security context
+# and revert to the base sysfs type.
+allow bluetooth sysfs:file write;

File sepolicy/init_shell.te

 allow init_shell sysfs_firmware_writable:file w_file_perms;
+
+# Kernel bug for Linux < 3.3: sysfs inodes can lose their security context
+# and revert to the base sysfs type.
+allow init_shell sysfs:file write;

File sepolicy/rild.te

 allow rild diag_device:chr_file rw_file_perms;
+
+# Kernel bug for Linux < 3.3: sysfs inodes can lose their security context
+# and revert to the base sysfs type.
+allow rild sysfs:file write;

File sepolicy/surfaceflinger.te

 allow surfaceflinger sysfs_devices_tegradc:dir r_dir_perms;
 allow surfaceflinger sysfs_devices_tegradc:lnk_file { open getattr read };
 allow surfaceflinger sysfs_devices_system_cpu:dir w_dir_perms;
+
+# Kernel bug for Linux < 3.3: sysfs inodes can lose their security context
+# and revert to the base sysfs type.
+allow surfaceflinger sysfs:file write;