Skip to content
Snippets Groups Projects
Commit 0ff85767 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am 4d9648e3: am b519949d: system_server: assert app data files never opened directly

* commit '4d9648e3':
  system_server: assert app data files never opened directly
parents 709aa70d 4d9648e3
No related branches found
No related tags found
No related merge requests found
...@@ -413,3 +413,10 @@ r_dir_file(system_server, oemfs) ...@@ -413,3 +413,10 @@ r_dir_file(system_server, oemfs)
# Do not allow accessing SDcard files as unsafe ejection could # Do not allow accessing SDcard files as unsafe ejection could
# cause the kernel to kill the system_server. # cause the kernel to kill the system_server.
neverallow system_server sdcard_type:file rw_file_perms; neverallow system_server sdcard_type:file rw_file_perms;
# system server should never be opening zygote spawned app data
# files directly. Rather, they should always be passed via a
# file descriptor.
# Types extracted from seapp_contexts type= fields, excluding
# those types that system_server needs to open directly.
neverallow system_server { bluetooth_data_file nfc_data_file shell_data_file app_data_file }:file open;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment