Add selinux permissions to r/w sysfs st33spi_state

Bug: 228508704
Test: Confirm can r/w to sysfs file
Change-Id: If96f15f53ee510bf361a2bec5f006d67b178981e
This commit is contained in:
Grace Chen 2022-03-23 14:53:03 -07:00
parent 7903dbb74c
commit 2a8ed004f6
2 changed files with 3 additions and 0 deletions

View file

@ -6,6 +6,8 @@ app_domain(euiccpixel_app)
allow euiccpixel_app app_api_service:service_manager find;
allow euiccpixel_app radio_service:service_manager find;
allow euiccpixel_app nfc_service:service_manager find;
allow euiccpixel_app sysfs_st33spi:dir search;
allow euiccpixel_app sysfs_st33spi:file rw_file_perms;
set_prop(euiccpixel_app, vendor_secure_element_prop)
set_prop(euiccpixel_app, vendor_modem_prop)

View file

@ -91,6 +91,7 @@ type modem_userdata_file, file_type;
# SecureElement
type sysfs_st33spi, sysfs_type, fs_type;
typeattribute sysfs_st33spi mlstrustedobject;
# GPU
type sysfs_gpu, sysfs_type, fs_type;