blob: 53dbfce7b36fa0aa37ff34c5dab8297ba4c60dd5 [file] [log] [blame]
Xiaoyong Zhou2ebc63b2019-01-29 15:27:21 -08001type mini-keyctl, domain, coredomain;
2type mini-keyctl_exec, exec_type, file_type, system_file_type;
3
4init_daemon_domain(mini-keyctl)
5
6allow mini-keyctl proc_keys:file r_file_perms;
7
8# Kernel only prints the keys that can be accessed and only kernel keyring is needed here.
9dontaudit mini-keyctl init:key view;
10dontaudit mini-keyctl vold:key view;
Victor Hsiehf7bf2772019-03-12 13:46:53 -070011allow mini-keyctl kernel:key { view search write setattr };
Xiaoyong Zhou2ebc63b2019-01-29 15:27:21 -080012allow mini-keyctl mini-keyctl:key { view search write };
13
14# When kernel requests an algorithm, the crypto API first looks for an
15# already registered algorithm with that name. If it fails, the kernel creates
16# an implementation of the algorithm from templates.
17dontaudit mini-keyctl kernel:system module_request;