device_xiaomi_sm6150-common/sepolicy/vendor/hal_sensors_default.te
Inseob Kim 87b0b914b1 sm6150-common: sepolicy: Attach vendor_property_type to properties
We are going to enforce that each property has an explicit owner, such
as system, vendor, or product. This attaches vendor_property_type to
properties defined under vendor sepolicy directories.

Bug: 159097992
Test: m selinux_policy && boot device
Change-Id: Ibed833cd9e5d786e82985ded6bc62abdf8cd9ded
Merged-In: Ibed833cd9e5d786e82985ded6bc62abdf8cd9ded
(cherry picked from commit 44eb8e1f89adf04fd413a69391fd444ba68af742)
(cherry picked from commit 1922128397116d551a663d5344b4456a84bf46eb)
2021-12-29 10:18:50 +00:00

8 lines
286 B
Plaintext

vendor_internal_prop(persist_sensors_prop)
allow hal_sensors_default hal_audio_default:unix_stream_socket connectto;
allow hal_sensors_default audio_socket:sock_file rw_file_perms;
get_prop(hal_sensors_default, persist_sensors_prop)
get_prop(hal_sensors_default, vendor_adsprpc_prop)