016e636539
Old Android kernels (e.g. kernel/goldfish android-2.6.29 commit 2bda29) fell back to a CAP_SYS_ADMIN check even before checking uids if the cgroup subsystem did not define its own can_attach handler. This doesn't appear to have ever been the case of mainline, and is not true of the 3.4 Android kernels. So we no longer need to dontaudit sys_admin to avoid log noise. Change-Id: I3822600a06c242764a94f9b67d9fcd6f599d3453 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
45 lines
2.2 KiB
Plaintext
45 lines
2.2 KiB
Plaintext
# installer daemon
|
|
type installd, domain;
|
|
type installd_exec, exec_type, file_type;
|
|
|
|
init_daemon_domain(installd)
|
|
relabelto_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 };
|
|
allow installd data_file_type:{ file_class_set } { getattr unlink };
|
|
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;
|
|
# 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;
|
|
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 };
|
|
# restorecon /data/data
|
|
allow installd unlabeled:dir relabelfrom;
|
|
allow installd unlabeled:notdevfile_class_set relabelfrom;
|
|
allow installd system_data_file:dir { relabelfrom relabelto };
|
|
allow installd system_data_file:notdevfile_class_set { relabelfrom relabelto };
|
|
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 };
|