blob: 7c72158717ddd8628c756768f931b4ca353f905d [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001# installer daemon
2type installd, domain;
3type installd_exec, exec_type, file_type;
4
5init_daemon_domain(installd)
Nick Kralevich0c9708b2013-07-10 14:46:05 -07006relabelto_domain(installd)
Nick Kralevich51946bc2013-07-01 17:08:11 -07007typeattribute installd mlstrustedsubject;
8allow installd self:capability { chown dac_override fowner fsetid setgid setuid };
9allow installd system_data_file:file create_file_perms;
10allow installd system_data_file:lnk_file create;
11allow installd dalvikcache_data_file:file create_file_perms;
12allow installd data_file_type:dir create_dir_perms;
13allow installd data_file_type:dir { relabelfrom relabelto };
Nick Kralevich839af9e2013-09-09 18:40:41 -070014allow installd data_file_type:{ file_class_set } { getattr unlink };
Nick Kralevich51946bc2013-07-01 17:08:11 -070015allow installd apk_data_file:file r_file_perms;
16allow installd apk_tmp_file:file r_file_perms;
17allow installd system_file:file x_file_perms;
18allow installd cgroup:dir create_dir_perms;
jaejyn.shin9cc6d8d2013-12-24 08:59:53 +090019allow installd download_file:dir { r_dir_perms write remove_name };
20allow installd download_file:file { r_file_perms unlink };
Nick Kralevich51946bc2013-07-01 17:08:11 -070021dontaudit installd self:capability sys_admin;
22# Check validity of SELinux context before use.
23selinux_check_context(installd)
24# Read /seapp_contexts and /data/security/seapp_contexts
25security_access_policy(installd)
26# ASEC
27allow installd platform_app_data_file:lnk_file { create setattr };
28allow installd app_data_file:lnk_file { create setattr };
29allow installd asec_apk_file:file r_file_perms;
Takeshi Aimif5e90002013-11-26 20:19:08 +090030allow installd bluetooth_data_file:lnk_file { create setattr };
31allow installd nfc_data_file:lnk_file { create setattr };
32allow installd radio_data_file:lnk_file { create setattr };
33allow installd shell_data_file:lnk_file { create setattr };