2012-01-04 09:33:27 -08:00
|
|
|
# installer daemon
|
|
|
|
type installd, domain;
|
|
|
|
type installd_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(installd)
|
2013-07-01 17:08:11 -07: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;
|
2014-04-09 11:24:33 -07:00
|
|
|
allow installd dalvikcache_profiles_data_file:dir create_dir_perms;
|
|
|
|
allow installd dalvikcache_profiles_data_file:file create_file_perms;
|
2014-05-08 23:28:52 -07:00
|
|
|
allow installd { data_file_type -keystore_data_file }:dir create_dir_perms;
|
|
|
|
allow installd { data_file_type -keystore_data_file }:dir { relabelfrom relabelto };
|
|
|
|
allow installd { data_file_type -keystore_data_file }:{ file_class_set } { getattr unlink };
|
2013-07-01 17:08:11 -07:00
|
|
|
allow installd apk_data_file:file r_file_perms;
|
|
|
|
allow installd apk_tmp_file:file r_file_perms;
|
2014-04-25 13:59:52 -07:00
|
|
|
allow installd oemfs:dir r_dir_perms;
|
|
|
|
allow installd oemfs:file r_file_perms;
|
2013-07-01 17:08:11 -07:00
|
|
|
allow installd system_file:file x_file_perms;
|
|
|
|
allow installd cgroup:dir create_dir_perms;
|
|
|
|
# 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 app_data_file:lnk_file { create setattr };
|
|
|
|
allow installd asec_apk_file:file r_file_perms;
|
2013-11-26 03:19:08 -08: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 };
|
2014-05-09 11:17:51 -07:00
|
|
|
allow installd system_app_data_file:lnk_file { create setattr };
|
2014-03-19 12:16:08 -07:00
|
|
|
# restorecon /data/data
|
|
|
|
allow installd unlabeled:dir relabelfrom;
|
|
|
|
allow installd unlabeled:notdevfile_class_set relabelfrom;
|
2014-05-07 10:10:02 -07:00
|
|
|
allow installd system_data_file:dir relabelfrom;
|
|
|
|
allow installd system_data_file:notdevfile_class_set relabelfrom;
|
|
|
|
allow installd system_app_data_file:dir { relabelfrom relabelto };
|
|
|
|
allow installd system_app_data_file:notdevfile_class_set { relabelfrom relabelto };
|
2014-03-19 12:16:08 -07:00
|
|
|
allow installd bluetooth_data_file:dir { relabelfrom relabelto };
|
|
|
|
allow installd bluetooth_data_file:notdevfile_class_set { relabelfrom relabelto };
|
|
|
|
allow installd nfc_data_file:dir { relabelfrom relabelto };
|
|
|
|
allow installd nfc_data_file:notdevfile_class_set { relabelfrom relabelto };
|
|
|
|
allow installd radio_data_file:dir { relabelfrom relabelto };
|
|
|
|
allow installd radio_data_file:notdevfile_class_set { relabelfrom relabelto };
|
|
|
|
allow installd app_data_file:dir { relabelfrom relabelto };
|
|
|
|
allow installd app_data_file:notdevfile_class_set { relabelfrom relabelto };
|
|
|
|
allow installd shell_data_file:dir { relabelfrom relabelto };
|
|
|
|
allow installd shell_data_file:notdevfile_class_set { relabelfrom relabelto };
|