Merge "Ensure that hwservice_manager adds / finds make sense." am: f21085ca29
am: 4aa9123f1b
Change-Id: I3db61fe0cb2a78d2607bc24081870da67fef0abb
This commit is contained in:
commit
5688729fd5
1 changed files with 9 additions and 0 deletions
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue