Fix avc denied for init-insmod-sh

qrtr.ko doesn't request net_admin permission now
05-30 05:12:58.524   492   492 I auditd  : type=1400 audit(0.0:4):
avc: denied { net_admin } for comm="modprobe" capability=12
scontext=u:r:init-insmod-sh:s0 tcontext=u:r:init-insmod-sh:s0
tclass=capability permissive=0

Bug: 234311675
Test: verified with the forrest ROM and error log gone
Change-Id: I72fb5441b977b6ba67d19416049a2776c3aebd12
This commit is contained in:
Hsiu-Chang Chen
2022-10-28 12:35:02 +08:00
parent b2c724f0ed
commit cf6ebcdd6f

View File

@@ -1,4 +1,3 @@
crash_dump vendor_slog_file dir b/238837168 crash_dump vendor_slog_file dir b/238837168
init-insmod-sh init-insmod-sh capability b/234311675
kernel vendor_charger_debugfs dir b/239887174 kernel vendor_charger_debugfs dir b/239887174
kernel vendor_regmap_debugfs dir b/238143398 kernel vendor_regmap_debugfs dir b/238143398