blob: 289f69e208d58b6a6b7ea879cfbb80a822cfe909 [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
Pawin Vongmasa609c2432019-04-30 05:09:28 -070019; Apps, except isolated apps, are clients of Codec2-related services
20; Unfortunately, we can't currently express this in module policy language:
21(typeattributeset hal_codec2_client ((and (appdomain) ((not (isolated_app))))))
22
Alex Klyubin75ca4832017-04-17 13:08:44 -070023; Apps, except isolated apps, are clients of Configstore HAL
24; Unfortunately, we can't currently express this in module policy language:
25; typeattribute { appdomain -isolated_app } hal_configstore_client;
26(typeattributeset hal_configstore_client ((and (appdomain) ((not (isolated_app))))))
27
Alex Klyubin5007c102017-04-17 12:53:40 -070028; Apps, except isolated apps, are clients of Graphics Allocator HAL
29; Unfortunately, we can't currently express this in module policy language:
30; typeattribute { appdomain -isolated_app } hal_graphics_allocator_client;
31(typeattributeset hal_graphics_allocator_client ((and (appdomain) ((not (isolated_app))))))
32
Dan Cashman91d398d2017-09-26 12:58:29 -070033; Apps, except isolated apps, are clients of Cas HAL
34; Unfortunately, we can't currently express this in module policy language:
35; typeattribute { appdomain -isolated_app } hal_cas_client;
36(typeattributeset hal_cas_client ((and (appdomain) ((not (isolated_app))))))
37
Mathias Agopian9901ff72017-03-29 19:08:34 -070038; Domains hosting Camera HAL implementations are clients of Allocator HAL
39; Unfortunately, we can't currently express this in module policy language:
40; typeattribute hal_camera hal_allocator_client;
41(typeattributeset hal_allocator_client (hal_camera))
Michael Butlerea331aa2017-12-15 14:16:25 -080042
43; Apps, except isolated apps, are clients of Neuralnetworks HAL
44; Unfortunately, we can't currently express this in module policy language:
45; typeattribute { appdomain -isolated_app } hal_neuralnetworks_client;
46(typeattributeset hal_neuralnetworks_client ((and (appdomain) ((not (isolated_app))))))
Tri Vo7f8b6cc2018-07-28 16:48:06 -070047
48; TODO(b/112056006): move these to mapping files when/if we implement 'versioned' attributes.
49; Rename untrusted_app_visible_* to untrusted_app_visible_*_violators.
50; Unfortunately, we can't currently express this in module policy language:
51; typeattribute untrusted_app_visible_hwservice untrusted_app_visible_hwservice_violators;
52; typeattribute untrusted_app_visible_halserver untrusted_app_visible_halserver_violators;
53(typeattribute untrusted_app_visible_hwservice)
54(typeattributeset untrusted_app_visible_hwservice_violators (untrusted_app_visible_hwservice))
55(typeattribute untrusted_app_visible_halserver)
56(typeattributeset untrusted_app_visible_halserver_violators (untrusted_app_visible_halserver))
Jiwen 'Steve' Caie17b2932019-01-04 19:14:07 -080057
58; Apps, except isolated apps, are clients of BufferHub HAL
59; Unfortunately, we can't currently express this in module policy language:
60; typeattribute { appdomain -isolated_app } hal_cas_client;
61(typeattributeset hal_bufferhub_client ((and (appdomain) ((not (isolated_app))))))