blob: 2a87eb7b1ab62c3288d5248f12ae83f90cad0e48 [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)
6typeattribute installd mlstrustedsubject;
7allow installd self:capability { chown dac_override fowner fsetid setgid setuid };
8allow installd system_data_file:file create_file_perms;
9allow installd system_data_file:lnk_file create;
10allow installd dalvikcache_data_file:file create_file_perms;
11allow installd data_file_type:dir create_dir_perms;
12allow installd data_file_type:dir { relabelfrom relabelto };
Haiqing Jiangf6ca1602012-07-27 13:13:19 -070013allow installd data_file_type:{ file lnk_file } { getattr unlink };
Stephen Smalley2dd4e512012-01-04 12:33:27 -050014allow installd apk_data_file:file r_file_perms;
Stephen Smalley59d28032012-03-19 10:24:52 -040015allow installd apk_tmp_file:file r_file_perms;
Stephen Smalley2dd4e512012-01-04 12:33:27 -050016allow installd system_file:file x_file_perms;
17allow installd cgroup:dir create_dir_perms;
18dontaudit installd self:capability sys_admin;
19# Check validity of SELinux context before use.
20selinux_check_context(installd)
21# Read /seapp_contexts, presently on the rootfs.
22allow installd rootfs:file r_file_perms;