Skip to content
Snippets Groups Projects
Commit 0338f7db authored by Tri Vo's avatar Tri Vo Committed by Gerrit Code Review
Browse files

Merge "Coredomain can't execute vendor code."

parents 536d1954 e26da713
No related branches found
No related tags found
No related merge requests found
......@@ -892,6 +892,25 @@ full_treble_only(`
-crash_dump_exec
-netutils_wrapper_exec
}:file { entrypoint execute execute_no_trans };
# Do not allow system components to execute files from vendor
# except for the ones whitelisted here.
neverallow {
coredomain
-init
-system_executes_vendor_violators
-vendor_init
} {
vendor_file_type
-same_process_hal_file
-vndk_sp_file
-vendor_app_file
}:file execute;
neverallow {
coredomain
-system_executes_vendor_violators
} vendor_file_type:file execute_no_trans;
')
# Only authorized processes should be writing to files in /data/dalvik-cache
......
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