Fix nfc avc denials for sysfs_vendor_sched

11-19 12:38:54.416  2631  2631 I com.android.nfc: type=1400 audit(0.0:404): avc: denied { search } for comm=4173796E635461736B202331 name="vendor_sched" dev="sysfs" ino=45736 scontext=u:r:nfc:s0 tcontext=u:object_r:sysfs_vendor_sched:s0 tclass=dir permissive=1

Bug: 207062484
Test: check avc without nfc
Change-Id: I50507934c071745e257434f512d9dc835790e669
This commit is contained in:
George Chang 2021-11-22 14:33:14 +08:00
parent a2b1ca5f7e
commit 8a4d5bd3b5
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,2 @@
# b/205904208 # b/205904208
dontaudit nfc zygote:binder { transfer }; dontaudit nfc zygote:binder { transfer };
# b/207062484
dontaudit nfc sysfs_vendor_sched:dir { search };

2
whitechapel_pro/nfc.te Normal file
View file

@ -0,0 +1,2 @@
allow nfc sysfs_vendor_sched:dir r_dir_perms;
allow nfc sysfs_vendor_sched:file w_file_perms;