1; 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)) 14 15; 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 19; 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 23; 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 28; 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 33; 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 38; 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)) 42 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)))))) 47 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)) 57 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)))))) 62