Merge "Ensure that hwservice_manager adds / finds make sense." am: f21085ca29

am: 4aa9123f1b

Change-Id: I3db61fe0cb2a78d2607bc24081870da67fef0abb
This commit is contained in:
Nick Kralevich 2018-12-19 17:52:51 -08:00 committed by android-build-merger
commit 5688729fd5

View file

@ -66,3 +66,12 @@ type system_net_netd_hwservice, hwservice_manager_type, coredomain_hwservice;
type system_suspend_hwservice, hwservice_manager_type, coredomain_hwservice;
type system_wifi_keystore_hwservice, hwservice_manager_type, coredomain_hwservice;
type thermalcallback_hwservice, hwservice_manager_type;
###
### Neverallow rules
###
# hwservicemanager handles registering or looking up named services.
# It does not make sense to register or lookup something which is not a
# hwservice. Trigger a compile error if this occurs.
neverallow domain ~hwservice_manager_type:hwservice_manager { add find };