Skip to contentSkip to conversation

allow camera calibration

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

lore
Share & tools
lore

hqjiang

author
#0 lore raw

PATCH 1/1 allow camera calibration

---
 file.te        |    1 +
 file_contexts  |    1 +
 mediaserver.te |    4 ++++
 3 files changed, 6 insertions(+), 0 deletions(-)
file.te +1 -0
index ba85ca5..e5c8502 100644
@@ -48,6 +48,7 @@ type systemkeys_data_file, file_type, data_file_type;
 type wifi_data_file, file_type, data_file_type;
 type radio_data_file, file_type, data_file_type;
 type nfc_data_file, file_type, data_file_type;
+type camera_calibration_file, file_type, data_file_type;
 # /data/data subdirectories - app sandboxes
 type app_data_file, file_type, data_file_type;
 # Default type for anything under /cache
file_contexts +1 -0
index bb58efe..39c4363 100644
@@ -122,6 +122,7 @@
 /data/misc/vpn(/.*)?		u:object_r:vpn_data_file:s0
 /data/misc/systemkeys(/.*)?	u:object_r:systemkeys_data_file:s0
 /data/misc/wifi(/.*)?		u:object_r:wifi_data_file:s0
+/data/misc/camera(/.*)?	u:object_r:camera_calibration_file:s0
 # App sandboxes
 /data/data/.*		u:object_r:app_data_file:s0
 # Wallpaper file.
mediaserver.te +4 -0
index c6af603..8d37fb7 100644
@@ -31,3 +31,7 @@ allow mediaserver rpmsg_device:chr_file rw_file_perms;
 
 # Inter System processes communicate over named pipe (FIFO)
 allow mediaserver system:fifo_file r_file_perms;
+
+# Camera calibration
+allow mediaserver camera_calibration_file:dir r_dir_perms;
+allow mediaserver camera_calibration_file:file r_file_perms;
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
---
 file.te        |    1 +
 file_contexts  |    1 +
 mediaserver.te |    4 ++++
 3 files changed, 6 insertions(+), 0 deletions(-)

Applied to external/sepolicy. Next time, please put the project name in the subject line. Also, consider using r_dir_file() for this pattern of allow rules.

Quoted 37 lines
file.te +1 -0
index ba85ca5..e5c8502 100644
@@ -48,6 +48,7 @@ type systemkeys_data_file, file_type, data_file_type;
 type wifi_data_file, file_type, data_file_type;
 type radio_data_file, file_type, data_file_type;
 type nfc_data_file, file_type, data_file_type;
+type camera_calibration_file, file_type, data_file_type;
 # /data/data subdirectories - app sandboxes
 type app_data_file, file_type, data_file_type;
 # Default type for anything under /cache
file_contexts +1 -0
index bb58efe..39c4363 100644
@@ -122,6 +122,7 @@
 /data/misc/vpn(/.*)?		u:object_r:vpn_data_file:s0
 /data/misc/systemkeys(/.*)?	u:object_r:systemkeys_data_file:s0
 /data/misc/wifi(/.*)?		u:object_r:wifi_data_file:s0
+/data/misc/camera(/.*)?	u:object_r:camera_calibration_file:s0
 # App sandboxes
 /data/data/.*		u:object_r:app_data_file:s0
 # Wallpaper file.
mediaserver.te +4 -0
index c6af603..8d37fb7 100644
@@ -31,3 +31,7 @@ allow mediaserver rpmsg_device:chr_file rw_file_perms;
 
 # Inter System processes communicate over named pipe (FIFO)
 allow mediaserver system:fifo_file r_file_perms;
+
+# Camera calibration
+allow mediaserver camera_calibration_file:dir r_dir_perms;
+allow mediaserver camera_calibration_file:file r_file_perms;
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.