Add neverallow rule for set_context_mgr.

Change-Id: Ie7c2bf623dcfe246fa5e60b0775b6bb38869d8cb
This commit is contained in:
dcashman 2014-12-05 14:30:30 -08:00
parent 0be02b360f
commit 76f3fe33d7

View file

@ -329,3 +329,6 @@ neverallow { domain -recovery } system_block_device:blk_file write;
# No domains other than install_recovery or recovery can write to recovery.
neverallow { domain -install_recovery -recovery } recovery_block_device:blk_file write;
# Only servicemanager should be able to register with binder as the context manager
neverallow { domain -servicemanager } *:binder set_context_mgr;