Allow ueventd to read apex mount directories.

ueventd now scans /apex/*/firmware/ directories to find firmwares.

Bug: 167942098
Test: loading firmware from vibrator apex (sunfish)
Change-Id: I76e32e3c290fa07307377bc6fbea41c1783e40a6
This commit is contained in:
Jooyung Han 2020-09-18 15:10:49 +09:00
parent 7be9e9e372
commit 68c1986c21

View file

@ -31,6 +31,9 @@ r_dir_file(ueventd, selinuxfs)
# Access for /vendor/ueventd.rc and /vendor/firmware # Access for /vendor/ueventd.rc and /vendor/firmware
r_dir_file(ueventd, { vendor_file_type -vendor_app_file -vendor_overlay_file }) r_dir_file(ueventd, { vendor_file_type -vendor_app_file -vendor_overlay_file })
# Access for /apex/*/firmware
allow ueventd apex_mnt_dir:dir r_dir_perms;
# Get file contexts for new device nodes # Get file contexts for new device nodes
allow ueventd file_contexts_file:file r_file_perms; allow ueventd file_contexts_file:file r_file_perms;