blob: 7275954b2940a2b53dae45466b974a286013ca4a [file] [log] [blame]
Nick Kralevich09e6abd2013-12-13 22:19:45 -08001# Rules common to all binder service domains
2
Joe Onorato41f93db2016-11-20 23:23:04 -08003# Allow dumpstate and incidentd to collect information from binder services
4allow binderservicedomain { dumpstate incidentd }:fd use;
5allow binderservicedomain { dumpstate incidentd }:unix_stream_socket { read write getopt getattr };
6allow binderservicedomain { dumpstate incidentd }:fifo_file { getattr write };
Nick Kralevich2e7a3012014-01-10 23:05:25 -08007allow binderservicedomain shell_data_file:file { getattr write };
Nick Kralevich51538902013-12-19 18:18:32 -08008
Nick Kralevich67d1f1e2014-06-20 18:25:52 -07009# Allow dumpsys to work from adb shell or the serial console
Nick Kralevich51538902013-12-19 18:18:32 -080010allow binderservicedomain devpts:chr_file rw_file_perms;
Nick Kralevich67d1f1e2014-06-20 18:25:52 -070011allow binderservicedomain console_device:chr_file rw_file_perms;
Stephen Smalley644279b2014-03-21 10:24:04 -040012
13# Receive and write to a pipe received over Binder from an app.
14allow binderservicedomain appdomain:fd use;
15allow binderservicedomain appdomain:fifo_file write;
Riley Spahnf90c41f2014-06-05 15:52:02 -070016
dcashman32d207e2015-10-29 10:32:14 -070017# allow all services to run permission checks
18allow binderservicedomain permission_service:service_manager find;
19
Chad Brubakereaa1a1e2015-05-13 14:39:48 -070020allow binderservicedomain keystore:keystore_key { get_state get insert delete exist list sign verify };
Janis Danisevskisabb93f22020-07-27 12:53:20 -070021allow binderservicedomain keystore:keystore2 { get_state };
Janis Danisevskis144c8222020-09-24 08:55:28 -070022allow binderservicedomain keystore:keystore2_key { delete get_info rebind use };
Riley Spahn1196d2a2014-06-17 14:58:52 -070023
24use_keystore(binderservicedomain)