Skip to content
Snippets Groups Projects
Commit de789145 authored by Joel Galenson's avatar Joel Galenson Committed by android-build-merger
Browse files

Disallow most domains from getting dac_override and dac_read_search. am: 60575233 am: fe98ecb7

am: 97c671c0

Change-Id: I3e6c45d733f114dc37ae85127d285227a7ab69dd
parents 3c7a3b78 97c671c0
No related branches found
No related tags found
No related merge requests found
......@@ -1224,3 +1224,29 @@ full_treble_only(`
-perfprofd
} vendor_file:file { create_file_perms x_file_perms };
')
# Minimize dac_override and dac_read_search.
# Instead of granting them it is usually better to add the domain to
# a Unix group or change the permissions of a file.
neverallow {
domain
-dnsmasq
-dumpstate
-init
-installd
-install_recovery
-lmkd
-netd
-perfprofd
-postinstall_dexopt
-recovery
-sdcardd
-tee
-ueventd
-uncrypt
-vendor_init
-vold
-vold_prepare_subdirs
-zygote
} self:capability dac_override;
neverallow domain self:capability dac_read_search;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment