From 9b3a3bcd1c75f68d7083bd100f55b75e40415160 Mon Sep 17 00:00:00 2001 From: myko Date: Mon, 11 Nov 2013 12:20:23 +0530 Subject: N7100 - Added Selinux support Change-Id: I8272187a8bfafbe0185be40c65fa166f711d4f1f --- selinux/file_contexts | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 selinux/file_contexts (limited to 'selinux/file_contexts') diff --git a/selinux/file_contexts b/selinux/file_contexts new file mode 100644 index 0000000..55022ec --- /dev/null +++ b/selinux/file_contexts @@ -0,0 +1,37 @@ +# GFX +/dev/mali u:object_r:mali_device:s0 +/dev/ump u:object_r:mali_device:s0 +/dev/fimg2d u:object_r:mali_device:s0 + +# RIL +/dev/umts_boot0 u:object_r:radio_device:s0 +/dev/umts_boot1 u:object_r:radio_device:s0 +/dev/umts_ipc0 u:object_r:radio_device:s0 +/dev/umts_ramdump0 u:object_r:radio_device:s0 +/dev/umts_rfs0 u:object_r:radio_device:s0 + +/dev/block/mmcblk0p7 u:object_r:efs_block_device:s0 + +# Camera +/data/ISP_CV u:object_r:camera_data_file:s0 +/dev/exynos-mem u:object_r:video_device:s0 + +# Bluetooth +/dev/ttySAC0 u:object_r:hci_attach_dev:s0 +/efs/bluetooth/(/.*)? u:object_r:bluetooth_efs_file:s0 + +# GPS +/dev/ttySAC1 u:object_r:gps_device:s0 + +# Sensors +/dev/akm8975 u:object_r:sensors_device:s0 +/efs/gyro_cal_data u:object_r:sensors_data_file:s0 + +# Wifi +/dev/rfkill u:object_r:rfkill_device:s0 +/efs/wifi/.mac.info u:object_r:wifi_data_file:s0 + +# Firmwares +/system/vendor/firmware(/.*)? u:object_r:firmware_camera:s0 +/system/vendor/firmware/mfc_fw.bin u:object_r:firmware_mfc:s0 +/data/cfw(/.*)? u:object_r:firmware_camera:s0 -- cgit v1.1 From dce6873d00e4ee996bac779a06633485177d6022 Mon Sep 17 00:00:00 2001 From: tilaksidduram Date: Sun, 17 Nov 2013 11:49:54 +0530 Subject: Selinux - some change --- selinux/file_contexts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'selinux/file_contexts') diff --git a/selinux/file_contexts b/selinux/file_contexts index 55022ec..9713bce 100644 --- a/selinux/file_contexts +++ b/selinux/file_contexts @@ -10,7 +10,7 @@ /dev/umts_ramdump0 u:object_r:radio_device:s0 /dev/umts_rfs0 u:object_r:radio_device:s0 -/dev/block/mmcblk0p7 u:object_r:efs_block_device:s0 +/dev/block/mmcblk0p10 u:object_r:efs_block_device:s0 # Camera /data/ISP_CV u:object_r:camera_data_file:s0 -- cgit v1.1 From 562847a690e18c40459713eb9b0c0b9bcebb900d Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta Date: Thu, 15 May 2014 17:22:02 +0530 Subject: More SELinux updates Conflicts: selinux/file_contexts --- selinux/file_contexts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'selinux/file_contexts') diff --git a/selinux/file_contexts b/selinux/file_contexts index 9713bce..85bda40 100644 --- a/selinux/file_contexts +++ b/selinux/file_contexts @@ -5,10 +5,12 @@ # RIL /dev/umts_boot0 u:object_r:radio_device:s0 -/dev/umts_boot1 u:object_r:radio_device:s0 +/dev/umts_csd u:object_r:radio_device:s0 /dev/umts_ipc0 u:object_r:radio_device:s0 +/dev/umts_loopback0 u:object_r:radio_device:s0 /dev/umts_ramdump0 u:object_r:radio_device:s0 /dev/umts_rfs0 u:object_r:radio_device:s0 +/dev/umts_router u:object_r:radio_device:s0 /dev/block/mmcblk0p10 u:object_r:efs_block_device:s0 @@ -35,3 +37,6 @@ /system/vendor/firmware(/.*)? u:object_r:firmware_camera:s0 /system/vendor/firmware/mfc_fw.bin u:object_r:firmware_mfc:s0 /data/cfw(/.*)? u:object_r:firmware_camera:s0 + +# Vibrator +/dev/tspdrv u:object_r:input_device:s0 -- cgit v1.1 From 0892f48f2f454ec19517c5b57b5836974b4483c3 Mon Sep 17 00:00:00 2001 From: tilaksidduram Date: Thu, 19 Nov 2015 23:27:29 +0530 Subject: n7100: remove selinux --- selinux/file_contexts | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 selinux/file_contexts (limited to 'selinux/file_contexts') diff --git a/selinux/file_contexts b/selinux/file_contexts deleted file mode 100644 index 85bda40..0000000 --- a/selinux/file_contexts +++ /dev/null @@ -1,42 +0,0 @@ -# GFX -/dev/mali u:object_r:mali_device:s0 -/dev/ump u:object_r:mali_device:s0 -/dev/fimg2d u:object_r:mali_device:s0 - -# RIL -/dev/umts_boot0 u:object_r:radio_device:s0 -/dev/umts_csd u:object_r:radio_device:s0 -/dev/umts_ipc0 u:object_r:radio_device:s0 -/dev/umts_loopback0 u:object_r:radio_device:s0 -/dev/umts_ramdump0 u:object_r:radio_device:s0 -/dev/umts_rfs0 u:object_r:radio_device:s0 -/dev/umts_router u:object_r:radio_device:s0 - -/dev/block/mmcblk0p10 u:object_r:efs_block_device:s0 - -# Camera -/data/ISP_CV u:object_r:camera_data_file:s0 -/dev/exynos-mem u:object_r:video_device:s0 - -# Bluetooth -/dev/ttySAC0 u:object_r:hci_attach_dev:s0 -/efs/bluetooth/(/.*)? u:object_r:bluetooth_efs_file:s0 - -# GPS -/dev/ttySAC1 u:object_r:gps_device:s0 - -# Sensors -/dev/akm8975 u:object_r:sensors_device:s0 -/efs/gyro_cal_data u:object_r:sensors_data_file:s0 - -# Wifi -/dev/rfkill u:object_r:rfkill_device:s0 -/efs/wifi/.mac.info u:object_r:wifi_data_file:s0 - -# Firmwares -/system/vendor/firmware(/.*)? u:object_r:firmware_camera:s0 -/system/vendor/firmware/mfc_fw.bin u:object_r:firmware_mfc:s0 -/data/cfw(/.*)? u:object_r:firmware_camera:s0 - -# Vibrator -/dev/tspdrv u:object_r:input_device:s0 -- cgit v1.1 From 0bf7364ac512f26be0373bf8810bd5c2cdc5c99d Mon Sep 17 00:00:00 2001 From: tilaksidduram Date: Mon, 21 Dec 2015 21:36:04 +0530 Subject: n7100: Bring in Selinux for M * commits picked up from the i9300 device repo and made a few changes for n7100 credits to keepcalm444 --- selinux/file_contexts | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 selinux/file_contexts (limited to 'selinux/file_contexts') diff --git a/selinux/file_contexts b/selinux/file_contexts new file mode 100644 index 0000000..988ef9a --- /dev/null +++ b/selinux/file_contexts @@ -0,0 +1,65 @@ +# GFX +/dev/mali u:object_r:gpu_device:s0 +/dev/ump u:object_r:gpu_device:s0 +/dev/fimg2d u:object_r:gpu_device:s0 + +# RIL +/dev/link_pm u:object_r:radio_device:s0 +/dev/umts_boot0 u:object_r:radio_device:s0 +/dev/umts_boot1 u:object_r:radio_device:s0 +/dev/umts_ipc0 u:object_r:radio_device:s0 +/dev/umts_ramdump0 u:object_r:radio_device:s0 +/dev/umts_rfs0 u:object_r:radio_device:s0 +/dev/__cbd_msg_ u:object_r:cbd_device:s0 + +/efs u:object_r:efs_device_file:s0 +/data/misc/radio(/.*)? u:object_r:radio_data:s0 +/sys/devices/platform/s5p-ohci/ohci_power u:object_r:sysfs_radio:s0 +/sys/devices/platform/s5p-ehci/ehci_power u:object_r:sysfs_radio:s0 + +# Partitions +/dev/block/mmcblk0(.*) u:object_r:boot_block_device:s0 +/dev/block/mmcblk0p3 u:object_r:efs_block_device:s0 +/dev/block/mmcblk0p12 u:object_r:cache_block_device:s0 +/dev/block/mmcblk0p13 u:object_r:system_block_device:s0 +/dev/block/mmcblk0p16 u:object_r:userdata_block_device:s0 + +# Camera +/data/ISP_CV u:object_r:camera_data_file:s0 +/dev/exynos-mem u:object_r:video_device:s0 +/dev/s3c-mfc u:object_r:mfc_device:s0 + +# Bluetooth +/dev/ttySAC0 u:object_r:hci_attach_dev:s0 +/efs/bluetooth(/.*)? u:object_r:bluetooth_efs_file:s0 + +# Display +/sys/class/mdnie/mdnie(/.*)? u:object_r:sysfs_display:s0 +/sys/devices/platform/samsung-pd.2/mdnie/mdnie(/.*)? u:object_r:sysfs_display:s0 + +# GPS +/dev/ttySAC1 u:object_r:gps_device:s0 +/system/bin/gps_daemon.sh u:object_r:gpsd_exec:s0 + +# Sensors +/dev/akm8963 u:object_r:sensors_device:s0 +/efs/gyro_cal_data u:object_r:sensors_data_file:s0 +/sys/class/sensors/accelerometer_sensor u:object_r:sysfs_sensor:s0 + +# Wifi +/dev/rfkill u:object_r:rfkill_device:s0 +/data/.cid.info u:object_r:wifi_data_file:s0 +/efs/wifi/.mac.info u:object_r:wifi_data_file:s0 + +# Firmwares +/system/vendor/firmware(/.*)? u:object_r:firmware_exynos:s0 +/system/vendor/firmware/mfc_fw.bin u:object_r:firmware_mfc:s0 +/data/cfw(/.*)? u:object_r:firmware_exynos:s0 + +# Vibrator +/dev/tspdrv u:object_r:input_device:s0 + +# Misc +/dev/HPD u:object_r:hpd_device:s0 +/system/bin/macloader u:object_r:macloader_exec:s0 +/system/bin/tinyplay u:object_r:tinyplay_exec:s0 -- cgit v1.1 From 7105cb10014b1e193a6894b3b131ffbf024086ba Mon Sep 17 00:00:00 2001 From: Simon Shields Date: Tue, 9 Feb 2016 12:23:15 +1100 Subject: n7100: move macloader and tinyplay sepolicy up to -common [2/2] Change-Id: I874a9f2f6590755e5815e18bcdc5d1e0cdac4523 --- selinux/file_contexts | 2 -- 1 file changed, 2 deletions(-) (limited to 'selinux/file_contexts') diff --git a/selinux/file_contexts b/selinux/file_contexts index 988ef9a..fc824b3 100644 --- a/selinux/file_contexts +++ b/selinux/file_contexts @@ -61,5 +61,3 @@ # Misc /dev/HPD u:object_r:hpd_device:s0 -/system/bin/macloader u:object_r:macloader_exec:s0 -/system/bin/tinyplay u:object_r:tinyplay_exec:s0 -- cgit v1.1