diff options
author | Robert Craig <rpcraig@tycho.ncsc.mil> | 2014-01-30 13:25:36 -0500 |
---|---|---|
committer | Robert Craig <rpcraig@tycho.ncsc.mil> | 2014-01-30 13:35:52 -0500 |
commit | 183874e0ba4d1157875fb837b7045998a9ac8bce (patch) | |
tree | 027ffcd01ff5552b7c85cd9cd4c14a68dc158010 | |
parent | a0ae8d149fc818a66f83c766aad15896e865ebbd (diff) | |
download | mako-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>
-rw-r--r-- | sepolicy/camera.te | 4 | ||||
-rw-r--r-- | sepolicy/file_contexts | 2 |
2 files changed, 3 insertions, 3 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) diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index b46db51..dd37820 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -86,7 +86,7 @@ /data/misc/sensors(/.*)? u:object_r:sensors_data_file:s0 /data/system/sensors(/.*)? u:object_r:sensors_data_file:s0 /data/misc/playready(/.*)? u:object_r:drm_data_file:s0 -/data/fdAlbum u:object_r:camera_calibration_file:s0 +/data/fdAlbum u:object_r:camera_data_file:s0 /system/bin/hci_qcomm_init u:object_r:hci_attach_exec:s0 /system/bin/bdAddrLoader u:object_r:bluetooth_loader_exec:s0 |