blob: b81ccfa35426c6d29211f2372c8d8a1e8bb8f52b [file] [log] [blame]
Alex Klyubinf5446eb2017-03-23 14:27:32 -07001typeattribute keystore coredomain;
2
dcashmancc39f632016-07-22 13:13:11 -07003init_daemon_domain(keystore)
Alex Klyubin53656c12017-04-13 19:05:27 -07004
5# talk to keymaster
6hal_client_domain(keystore, hal_keymaster)
7
Janis Danisevskis97c56bd2018-01-09 17:42:53 -05008# talk to confirmationui
9hal_client_domain(keystore, hal_confirmationui)
10
Janis Danisevskisbd464a92020-08-24 07:52:32 -070011# talk to keymint
12hal_client_domain(keystore, hal_keymint)
13
Alice Wange79bbf92023-11-14 07:38:18 +000014# Ignore keystore attempts to access the AVF RKP Hal but keystore is not suppose to
15# access it.
16# TODO(b/312427637): Investigate the reason and fix the denial.
17dontaudit keystore hal_remotelyprovisionedcomponent_avf_service:service_manager { find };
18
Janis Danisevskis97c56bd2018-01-09 17:42:53 -050019# This is used for the ConfirmationUI async callback.
20allow keystore platform_app:binder call;
21
Pavel Grafovc5b33302018-01-24 19:49:18 +000022# Allow to check whether security logging is enabled.
23get_prop(keystore, device_logging_prop)
Janis Danisevskisc40681f2020-07-25 13:02:29 -070024
Max Biresaaacfdb2022-02-01 21:15:44 -080025# Allow keystore to check if the system is rkp only.
26get_prop(keystore, remote_prov_prop)
27
Vikram Gaure1c49f52022-09-29 21:20:22 +000028# Allow keystore to check rkpd feature flags
29get_prop(keystore, device_config_remote_key_provisioning_native_prop)
30
Hasini Gunasinghe0112daa2020-06-10 23:34:41 +000031# Allow keystore to write to statsd.
32unix_socket_send(keystore, statsdw, statsd)
Xin Li11da9e62020-08-29 01:45:24 -070033
Eric Biggerscc5cb432023-10-16 21:44:26 +000034# Keystore need access to the keystore2_key_contexts file to load the keystore key backend.
Janis Danisevskisc40681f2020-07-25 13:02:29 -070035allow keystore keystore2_key_contexts_file:file r_file_perms;
Hasini Gunasinghe83e1f142020-06-10 21:10:02 +000036
Paul Crowley283aef22022-08-22 09:00:25 -070037# Allow keystore to listen to changing boot levels
Paul Crowleyb0c55712021-02-23 08:40:05 -080038get_prop(keystore, keystore_listen_prop)
Satya Tangiralaa9990042021-03-01 02:53:46 -080039
Paul Crowley4a794522021-06-13 09:56:33 -070040# Keystore needs to transfer binder references to vold so that it
Satya Tangiralaa9990042021-03-01 02:53:46 -080041# can call keystore methods on those references.
42allow keystore vold:binder transfer;
Hasini Gunasinghe4fa6b1a2021-07-02 23:14:50 +000043
44# Only keystore can set keystore.crash_count system property. Since init is allowed to set any
45# system property, an exception is added for init as well.
46set_prop(keystore, keystore_crash_prop)
47neverallow { domain -keystore -init } keystore_crash_prop:property_service set;
Rob Seymourecbadbb2022-07-28 16:23:42 +000048
49# keystore is using apex_info via libvintf
50use_apex_info(keystore)