Skip to content
Snippets Groups Projects
Commit 9565c5ce authored by Nick Kralevich's avatar Nick Kralevich
Browse files

Backport part of d615ef34 to klp-dev

Part of d615ef34 hasn't been backported
to klp-dev yet.  Do it now.

Change-Id: Ib4f26c64d376e236fa3f76166f5d78a9f28b79a3
parent 839af9ed
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ allow installd apk_data_file:file r_file_perms; ...@@ -16,6 +16,7 @@ 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