blob: b04e5e076435f85f0c9277e4d4893546caf47db7 [file] [log] [blame]
Alex Klyubin7cda44f2017-03-21 14:28:53 -07001; THIS IS A WORKAROUND for the current limitations of the module policy language
2; This should be used sparingly until we figure out a saner way to achieve the
3; stuff below, for example, by improving typeattribute statement of module
4; language.
5;
6; NOTE: This file has no effect on recovery policy.
7
8; Apps, except isolated apps, are clients of Allocator HAL
9; Unfortunately, we can't currently express this in module policy language:
10; typeattribute { appdomain -isolated_app } hal_allocator_client;
11; typeattribute hal_allocator_client halclientdomain;
12(typeattributeset hal_allocator_client ((and (appdomain) ((not (isolated_app))))))
13(typeattributeset halclientdomain (hal_allocator_client))
Mathias Agopian9901ff72017-03-29 19:08:34 -070014
Steven Moreland8fc79812018-05-30 16:43:17 -070015; Apps, except isolated apps, are clients of OMX-related services
16; Unfortunately, we can't currently express this in module policy language:
17(typeattributeset hal_omx_client ((and (appdomain) ((not (isolated_app))))))
18
Alex Klyubin75ca4832017-04-17 13:08:44 -070019; Apps, except isolated apps, are clients of Configstore HAL
20; Unfortunately, we can't currently express this in module policy language:
21; typeattribute { appdomain -isolated_app } hal_configstore_client;
22(typeattributeset hal_configstore_client ((and (appdomain) ((not (isolated_app))))))
23
Alex Klyubin5007c102017-04-17 12:53:40 -070024; Apps, except isolated apps, are clients of Graphics Allocator HAL
25; Unfortunately, we can't currently express this in module policy language:
26; typeattribute { appdomain -isolated_app } hal_graphics_allocator_client;
27(typeattributeset hal_graphics_allocator_client ((and (appdomain) ((not (isolated_app))))))
28
Dan Cashman91d398d2017-09-26 12:58:29 -070029; Apps, except isolated apps, are clients of Cas HAL
30; Unfortunately, we can't currently express this in module policy language:
31; typeattribute { appdomain -isolated_app } hal_cas_client;
32(typeattributeset hal_cas_client ((and (appdomain) ((not (isolated_app))))))
33
Mathias Agopian9901ff72017-03-29 19:08:34 -070034; Domains hosting Camera HAL implementations are clients of Allocator HAL
35; Unfortunately, we can't currently express this in module policy language:
36; typeattribute hal_camera hal_allocator_client;
37(typeattributeset hal_allocator_client (hal_camera))
Michael Butlerea331aa2017-12-15 14:16:25 -080038
39; Apps, except isolated apps, are clients of Neuralnetworks HAL
40; Unfortunately, we can't currently express this in module policy language:
41; typeattribute { appdomain -isolated_app } hal_neuralnetworks_client;
42(typeattributeset hal_neuralnetworks_client ((and (appdomain) ((not (isolated_app))))))