Add selinux permissions to r/w sysfs st33spi_state

Bug: 228655141
Test: Confirm can read/write st33spi_state
Change-Id: I65299414d6268580dc532170759459147378418b
This commit is contained in:
Lily Lin 2022-04-28 19:04:18 +08:00
parent 615f85c22d
commit 59f29edf92
2 changed files with 7 additions and 0 deletions

View file

@ -21,5 +21,9 @@ userdebug_or_eng(`
# Access to directly upgrade firmware on st33spi_device used for engineering devices # Access to directly upgrade firmware on st33spi_device used for engineering devices
typeattribute st33spi_device mlstrustedobject; typeattribute st33spi_device mlstrustedobject;
allow euiccpixel_app st33spi_device:chr_file rw_file_perms; allow euiccpixel_app st33spi_device:chr_file rw_file_perms;
allow euiccpixel_app sysfs_st33spi:dir search;
allow euiccpixel_app sysfs_st33spi:file rw_file_perms;
allow euiccpixel_app sysfs_touch:dir search;
') ')

View file

@ -203,6 +203,9 @@ userdebug_or_eng(`
# SecureElement # SecureElement
type sysfs_st33spi, sysfs_type, fs_type; type sysfs_st33spi, sysfs_type, fs_type;
userdebug_or_eng(`
typeattribute sysfs_st33spi mlstrustedobject;
')
# Trusty # Trusty
type sysfs_trusty, sysfs_type, fs_type; type sysfs_trusty, sysfs_type, fs_type;