2012-01-04 18:33:27 +01:00
|
|
|
# installer daemon
|
|
|
|
type installd, domain;
|
|
|
|
type installd_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(installd)
|
|
|
|
typeattribute installd mlstrustedsubject;
|
|
|
|
allow installd self:capability { chown dac_override fowner fsetid setgid setuid };
|
|
|
|
allow installd system_data_file:file create_file_perms;
|
|
|
|
allow installd system_data_file:lnk_file create;
|
|
|
|
allow installd dalvikcache_data_file:file create_file_perms;
|
|
|
|
allow installd data_file_type:dir create_dir_perms;
|
|
|
|
allow installd data_file_type:dir { relabelfrom relabelto };
|
2012-07-27 22:13:19 +02:00
|
|
|
allow installd data_file_type:{ file lnk_file } { getattr unlink };
|
2012-01-04 18:33:27 +01:00
|
|
|
allow installd apk_data_file:file r_file_perms;
|
2012-03-19 15:24:52 +01:00
|
|
|
allow installd apk_tmp_file:file r_file_perms;
|
2012-01-04 18:33:27 +01:00
|
|
|
allow installd system_file:file x_file_perms;
|
|
|
|
allow installd cgroup:dir create_dir_perms;
|
|
|
|
dontaudit installd self:capability sys_admin;
|
|
|
|
# Check validity of SELinux context before use.
|
|
|
|
selinux_check_context(installd)
|
|
|
|
# Read /seapp_contexts, presently on the rootfs.
|
|
|
|
allow installd rootfs:file r_file_perms;
|