2012-01-04 18:33:27 +01:00
|
|
|
# installer daemon
|
|
|
|
type installd, domain;
|
|
|
|
type installd_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(installd)
|
2013-07-10 23:46:05 +02:00
|
|
|
relabelto_domain(installd)
|
2013-07-02 02:08:11 +02:00
|
|
|
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 };
|
2013-09-10 03:40:41 +02:00
|
|
|
allow installd data_file_type:{ file_class_set } { getattr unlink };
|
2013-07-02 02:08:11 +02:00
|
|
|
allow installd apk_data_file:file r_file_perms;
|
|
|
|
allow installd apk_tmp_file:file r_file_perms;
|
|
|
|
allow installd system_file:file x_file_perms;
|
|
|
|
allow installd cgroup:dir create_dir_perms;
|
2013-12-24 00:59:53 +01:00
|
|
|
allow installd download_file:dir { r_dir_perms write remove_name };
|
|
|
|
allow installd download_file:file { r_file_perms unlink };
|
2013-07-02 02:08:11 +02:00
|
|
|
dontaudit installd self:capability sys_admin;
|
|
|
|
# Check validity of SELinux context before use.
|
|
|
|
selinux_check_context(installd)
|
|
|
|
# Read /seapp_contexts and /data/security/seapp_contexts
|
|
|
|
security_access_policy(installd)
|
|
|
|
# ASEC
|
|
|
|
allow installd platform_app_data_file:lnk_file { create setattr };
|
|
|
|
allow installd app_data_file:lnk_file { create setattr };
|
|
|
|
allow installd asec_apk_file:file r_file_perms;
|
2013-11-26 12:19:08 +01:00
|
|
|
allow installd bluetooth_data_file:lnk_file { create setattr };
|
|
|
|
allow installd nfc_data_file:lnk_file { create setattr };
|
|
|
|
allow installd radio_data_file:lnk_file { create setattr };
|
|
|
|
allow installd shell_data_file:lnk_file { create setattr };
|