Skip to content

Commit

Permalink
am 06f5064: am a181459: am a8ac71a: Merge "Label /data/diag_logs and …
Browse files Browse the repository at this point in the history
…allow qxdmlogger access on userdebug/eng."

* commit '06f506422b25e9dcf12b77d625c9ba4538e7002d':
  Label /data/diag_logs and allow qxdmlogger access on userdebug/eng.
  • Loading branch information
nickkral authored and Android Git Automerger committed May 8, 2014
2 parents 97adde2 + 06f5064 commit 1ae1541
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions sepolicy/file.te
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ type sensors_socket, file_type;
type camera_socket, file_type;
type thermald_socket, file_type;

type diag_logs, file_type, data_file_type;
type sensors_data_file, file_type, data_file_type;
type time_data_file, file_type, data_file_type;
type ramdump_data_file, file_type, data_file_type;
Expand Down
2 changes: 1 addition & 1 deletion sepolicy/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

/data/cam_socket[0-9] u:object_r:camera_socket:s0
/data/app/sensor_ctl_socket u:object_r:sensors_socket:s0

/data/diag_logs(/.*)? u:object_r:diag_logs:s0
/data/nfc(/.*)? u:object_r:nfc_data_file:s0
/data/misc/sensors(/.*)? u:object_r:sensors_data_file:s0
/data/system/sensors(/.*)? u:object_r:sensors_data_file:s0
Expand Down
6 changes: 6 additions & 0 deletions sepolicy/platform_app.te
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
allow platform_app time:unix_stream_socket connectto;

userdebug_or_eng(`
# qxdmlogger access to /data/diag_logs.
allow platform_app diag_logs:dir rw_dir_perms;
allow platform_app diag_logs:file create_file_perms;
')

0 comments on commit 1ae1541

Please sign in to comment.