summaryrefslogtreecommitdiff
path: root/sepolicy/camera.te
diff options
context:
space:
mode:
authorRobert Craig <rpcraig@tycho.ncsc.mil>2014-01-30 13:25:36 -0500
committerRobert Craig <rpcraig@tycho.ncsc.mil>2014-01-30 13:35:52 -0500
commit183874e0ba4d1157875fb837b7045998a9ac8bce (patch)
tree027ffcd01ff5552b7c85cd9cd4c14a68dc158010 /sepolicy/camera.te
parenta0ae8d149fc818a66f83c766aad15896e865ebbd (diff)
downloadmako-183874e0ba4d1157875fb837b7045998a9ac8bce.tar.gz
Change camera_calibration_file to camera_data_file in policy.
The camera_calibration_file label is used for /data/fdAlbum but that should be changed to camera_data_file. There is an individual restorecon in init.mako.rc to relabel this on boot. A change to the file_contexts has also been made which will cause the hash of the file to change and trigger the restorecon during an OTA. Change-Id: I7391a137f0e050b3f27c806e93993118860641b5 Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Diffstat (limited to 'sepolicy/camera.te')
-rw-r--r--sepolicy/camera.te4
1 files changed, 2 insertions, 2 deletions
diff --git a/sepolicy/camera.te b/sepolicy/camera.te
index 4f8406f..3d37ca3 100644
--- a/sepolicy/camera.te
+++ b/sepolicy/camera.te
@@ -19,8 +19,8 @@ allow camera camera_socket:sock_file { create unlink };
allow camera system_data_file:dir w_dir_perms;
allow camera system_data_file:sock_file unlink;
-type_transition camera system_data_file:file camera_calibration_file "fdAlbum";
-allow camera camera_calibration_file:file create_file_perms;
+type_transition camera system_data_file:file camera_data_file "fdAlbum";
+allow camera camera_data_file:file create_file_perms;
# Connect to sensor socket (/data/app/sensor_ctl_socket)
unix_socket_connect(camera, sensors, sensors)