blob: 0e570458769a848e80257b8b4ad20ae4776d190f [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
Janis Danisevskis97c56bd2018-01-09 17:42:53 -050014# This is used for the ConfirmationUI async callback.
15allow keystore platform_app:binder call;
16
Pavel Grafovc5b33302018-01-24 19:49:18 +000017# Allow to check whether security logging is enabled.
18get_prop(keystore, device_logging_prop)
Janis Danisevskisc40681f2020-07-25 13:02:29 -070019
Hasini Gunasinghe0112daa2020-06-10 23:34:41 +000020# Allow keystore to write to statsd.
21unix_socket_send(keystore, statsdw, statsd)
Xin Li11da9e62020-08-29 01:45:24 -070022
Seth Moorebad41652021-04-12 21:27:12 +000023# Allow keystore to register callbacks with statsd.
24allow keystore stats_service:service_manager find;
25binder_call(keystore, statsd);
26
Janis Danisevskisc40681f2020-07-25 13:02:29 -070027# Keystore need access to the keystore_key context files to load the keystore key backend.
28allow keystore keystore2_key_contexts_file:file r_file_perms;
Hasini Gunasinghe83e1f142020-06-10 21:10:02 +000029
Paul Crowleyb0c55712021-02-23 08:40:05 -080030get_prop(keystore, keystore_listen_prop)
Satya Tangiralaa9990042021-03-01 02:53:46 -080031
Paul Crowley4a794522021-06-13 09:56:33 -070032# Keystore needs to transfer binder references to vold so that it
Satya Tangiralaa9990042021-03-01 02:53:46 -080033# can call keystore methods on those references.
34allow keystore vold:binder transfer;