Skip to content
Snippets Groups Projects
Commit a6a3aa9d authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Disallow /misc access except for a few domains.

am: 2c7a5f26

* commit '2c7a5f26':
  Disallow /misc access except for a few domains.

Change-Id: Ib506f5a05cc026ce5dfe0ab244b82f4a51a6316b
parents 41d78b16 2c7a5f26
Branches
Tags
No related merge requests found
......@@ -317,6 +317,20 @@ neverallow { domain -recovery -update_engine } system_block_device:blk_file writ
# No domains other than install_recovery or recovery can write to recovery.
neverallow { domain -install_recovery -recovery } recovery_block_device:blk_file write;
# No domains other than a select few can access the misc_block_device. This
# block device is reserved for OTA use.
# Do not assert this rule on userdebug/eng builds, due to some devices using
# this partition for testing purposes.
neverallow {
domain
userdebug_or_eng(`-domain') # exclude debuggable builds
-init
-uncrypt
-update_engine
-vold
-recovery
} misc_block_device:blk_file { append link relabelfrom rename write open read ioctl lock };
# Only servicemanager should be able to register with binder as the context manager
neverallow { domain -servicemanager } *:binder set_context_mgr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment