Skip to content
Snippets Groups Projects
Commit 66826d5e authored by Geremy Condra's avatar Geremy Condra Committed by Gerrit Code Review
Browse files

Merge "Fix miscellaneous long-tail denials."

parents 2f40a17a d615ef34
No related branches found
No related tags found
No related merge requests found
...@@ -11,11 +11,12 @@ allow installd system_data_file:lnk_file create; ...@@ -11,11 +11,12 @@ allow installd system_data_file:lnk_file create;
allow installd dalvikcache_data_file:file create_file_perms; allow installd dalvikcache_data_file:file create_file_perms;
allow installd data_file_type:dir create_dir_perms; allow installd data_file_type:dir create_dir_perms;
allow installd data_file_type:dir { relabelfrom relabelto }; allow installd data_file_type:dir { relabelfrom relabelto };
allow installd data_file_type:{ file lnk_file } { getattr unlink }; allow installd data_file_type:{ file lnk_file sock_file } { getattr unlink };
allow installd apk_data_file:file r_file_perms; allow installd apk_data_file:file r_file_perms;
allow installd apk_tmp_file:file r_file_perms; allow installd apk_tmp_file:file r_file_perms;
allow installd system_file:file x_file_perms; allow installd system_file:file x_file_perms;
allow installd cgroup:dir create_dir_perms; allow installd cgroup:dir create_dir_perms;
allow installd download_file:dir { read getattr };
dontaudit installd self:capability sys_admin; dontaudit installd self:capability sys_admin;
# Check validity of SELinux context before use. # Check validity of SELinux context before use.
selinux_check_context(installd) selinux_check_context(installd)
......
...@@ -5,7 +5,7 @@ type zygote_exec, exec_type, file_type; ...@@ -5,7 +5,7 @@ type zygote_exec, exec_type, file_type;
init_daemon_domain(zygote) init_daemon_domain(zygote)
typeattribute zygote mlstrustedsubject; typeattribute zygote mlstrustedsubject;
# Override DAC on files and switch uid/gid. # Override DAC on files and switch uid/gid.
allow zygote self:capability { dac_override setgid setuid }; allow zygote self:capability { dac_override setgid setuid fowner };
# Drop capabilities from bounding set. # Drop capabilities from bounding set.
allow zygote self:capability setpcap; allow zygote self:capability setpcap;
# Switch SELinux context to app domains. # Switch SELinux context to app domains.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment