Skip to contentSkip to conversation

We make two changes: 1. GPS-chip-requires-uart-rts-level-control; 2. We label our specific context to misc/camera(./*) in order to allow camera calibration.

PATCH In review hqjiang 2 participants 2 messages Jul 19, 2012 SELinux security module

lore
Share & tools
lore

hqjiang

author
#0 lore raw

PATCH 1/1 We make two changes: 1. GPS-chip-requires-uart-rts-level-control; 2. We label our specific context to misc/camera(./*) in order to allow camera calibration.

---
 init.tuna.rc            |    1 +
 sepolicy.genfs_contexts |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
 create mode 100644 sepolicy.genfs_contexts
init.tuna.rc +1 -0
index 7745161..aa57120 100755
@@ -22,6 +22,7 @@ on post-fs-data
 	# camera calibration
 	mkdir /data/misc/camera 0770 media media
 	mkdir /data/misc/camera/R5_MVEN003_LD2_ND0_IR0_SH0_FL1_SVEN003_DCCID1044 0770 media media
+	restorecon /data/misc/camera
 
 	# remount factory as read-only
 	mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/efs /factory ro remount
sepolicy.genfs_contexts new file +2 -0
new file mode 100644
index 0000000..56ef603
@@ -0,0 +1,2 @@
+# This proc entry is for CSR GPS chip on Samsung Tuna Board.
+genfscon proc /mcspi1_cs3_ctrl u:object_r:gps_control:s0
Signature · 7 lines
1.7.0.4


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 5 lines · hqjiang
---
 init.tuna.rc            |    1 +
 sepolicy.genfs_contexts |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
 create mode 100644 sepolicy.genfs_contexts

You did not specify the project being targeted by the patch, and your subject line is too long (the longer description goes in the body before the --). Example of a good subject line:

Subject: [PATCH 1/1] device/samsung/tuna: camera and gps control labeling

Quoted 21 lines
init.tuna.rc +1 -0
index 7745161..aa57120 100755
@@ -22,6 +22,7 @@ on post-fs-data
 	# camera calibration
 	mkdir /data/misc/camera 0770 media media
 	mkdir /data/misc/camera/R5_MVEN003_LD2_ND0_IR0_SH0_FL1_SVEN003_DCCID1044 0770 media media
+	restorecon /data/misc/camera
 
 	# remount factory as read-only
 	mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/efs /factory ro remount
sepolicy.genfs_contexts new file +2 -0
new file mode 100644
index 0000000..56ef603
@@ -0,0 +1,2 @@
+# This proc entry is for CSR GPS chip on Samsung Tuna Board.
+genfscon proc /mcspi1_cs3_ctrl u:object_r:gps_control:s0
Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.