Allow regmap debugfs for drivers probed by insmod

auditd  : type=1400 audit(0.0:731): avc:  denied  { search } for
comm="modprobe" name="regmap" dev="debugfs" ino=2057
scontext=u:r:insmod-sh:s0 tcontext=u:object_r:vendor_regmap_debugfs:s0
tclass=dir permissive=1 bug=b/274727542

vendor_kernel_boot and vendor_dlkm modules probe by insmod need this.
Move regmap debugfs from legacy/whitechapel_pro/ to vendor/.

Bug: 274727542
Bug: 289012421
Test: ls -d /sys/kernel/debug/regmap/*-0043
Change-Id: I2bd35a6bc942536505f62d4122f0de892f243802
This commit is contained in:
Tai Kuo 2023-09-12 15:34:16 +08:00
parent 4bb847b815
commit 1a65e5d5e4
6 changed files with 3 additions and 7 deletions

View file

@ -4,7 +4,6 @@ hal_uwb_default debugfs file b/288049522
incidentd debugfs_wakeup_sources file b/288049561
incidentd incidentd anon_inode b/288049561
insmod-sh insmod-sh key b/274374722
insmod-sh vendor_regmap_debugfs dir b/274727542
mtectrl unlabeled dir b/264483752
systemui_app wm_trace_data_file dir b/288049075
vendor_init proc file b/289856761