blob: 36993eb61232d77da3a1f462349394ca29d2b56f [file] [log] [blame]
Nick Kralevich09e6abd2013-12-13 22:19:45 -08001# Rules common to all binder service domains
2
Nick Kralevich51538902013-12-19 18:18:32 -08003# Allow dumpstate to collect information from binder services
Nick Kralevich09e6abd2013-12-13 22:19:45 -08004allow binderservicedomain dumpstate:fd use;
5allow binderservicedomain dumpstate:unix_stream_socket { read write getopt getattr };
Nick Kralevich2e7a3012014-01-10 23:05:25 -08006allow binderservicedomain shell_data_file:file { getattr write };
Nick Kralevich51538902013-12-19 18:18:32 -08007
Nick Kralevich67d1f1e2014-06-20 18:25:52 -07008# Allow dumpsys to work from adb shell or the serial console
Nick Kralevich51538902013-12-19 18:18:32 -08009allow binderservicedomain devpts:chr_file rw_file_perms;
Nick Kralevich67d1f1e2014-06-20 18:25:52 -070010allow binderservicedomain console_device:chr_file rw_file_perms;
Stephen Smalley644279b2014-03-21 10:24:04 -040011
12# Receive and write to a pipe received over Binder from an app.
13allow binderservicedomain appdomain:fd use;
14allow binderservicedomain appdomain:fifo_file write;
Riley Spahnf90c41f2014-06-05 15:52:02 -070015
dcashman9acda2f2015-10-29 10:32:14 -070016# allow all services to run permission checks
17allow binderservicedomain permission_service:service_manager find;
18
Chad Brubakereaa1a1e2015-05-13 14:39:48 -070019allow binderservicedomain keystore:keystore_key { get_state get insert delete exist list sign verify };
Riley Spahn1196d2a2014-06-17 14:58:52 -070020
21use_keystore(binderservicedomain)