Skip to content
Snippets Groups Projects
Commit ae317c7e authored by Geremy Condra's avatar Geremy Condra
Browse files

Add the sysrq_file special file and give ADB write access.

Change-Id: Ief2d412dddf4cefdf43a26538c4be060df4cc787
parent 66ff0595
No related branches found
No related tags found
No related merge requests found
...@@ -36,3 +36,6 @@ allow adbd shell:process noatsecure; ...@@ -36,3 +36,6 @@ allow adbd shell:process noatsecure;
# XXX Run screencap in a separate domain? # XXX Run screencap in a separate domain?
binder_use(adbd) binder_use(adbd)
binder_call(adbd, surfaceflinger) binder_call(adbd, surfaceflinger)
# Write to the sysrq file
allow adbd sysrq_file:file w_file_perms;
...@@ -78,6 +78,8 @@ type security_file, file_type; ...@@ -78,6 +78,8 @@ type security_file, file_type;
type bluetooth_efs_file, file_type; type bluetooth_efs_file, file_type;
# Downloaded files # Downloaded files
type download_file, file_type; type download_file, file_type;
# The sysrq special file
type sysrq_file, file_type;
# Socket types # Socket types
type adbd_socket, file_type; type adbd_socket, file_type;
......
...@@ -208,3 +208,6 @@ ...@@ -208,3 +208,6 @@
# asec containers # asec containers
/mnt/asec(/.*)? u:object_r:asec_apk_file:s0 /mnt/asec(/.*)? u:object_r:asec_apk_file:s0
/data/app-asec(/.*)? u:object_r:asec_image_file:s0 /data/app-asec(/.*)? u:object_r:asec_image_file:s0
#############################
# special /proc files
/proc/sysrq-trigger u:object_r:sysrq_file:s0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment