Skip to content
Snippets Groups Projects
Commit 9342d554 authored by Stephen Smalley's avatar Stephen Smalley Committed by Android Git Automerger
Browse files

am eaece936: neverallow untrusted_app as a mlstrustedsubject.

* commit 'eaece936':
  neverallow untrusted_app as a mlstrustedsubject.
parents cccef6c0 eaece936
No related branches found
No related tags found
No related merge requests found
...@@ -166,3 +166,13 @@ neverallow untrusted_app service_manager_type:service_manager add; ...@@ -166,3 +166,13 @@ neverallow untrusted_app service_manager_type:service_manager add;
neverallow untrusted_app property_socket:sock_file write; neverallow untrusted_app property_socket:sock_file write;
neverallow untrusted_app init:unix_stream_socket connectto; neverallow untrusted_app init:unix_stream_socket connectto;
neverallow untrusted_app property_type:property_service set; neverallow untrusted_app property_type:property_service set;
# Do not allow untrusted_app to be assigned mlstrustedsubject.
# This would undermine the per-user isolation model being
# enforced via levelFrom=user in seapp_contexts and the mls
# constraints. As there is no direct way to specify a neverallow
# on attribute assignment, this relies on the fact that fork
# permission only makes sense within a domain (hence should
# never be granted to any other domain within mlstrustedsubject)
# and untrusted_app is allowed fork permission to itself.
neverallow untrusted_app mlstrustedsubject:process fork;
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