mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
Add dontaudit rules for nfc.persist properties
Since NFC has a common vendor library, adding dontaudit rules
for properties which are not used by this product.
type=1400 audit(0.0:35): avc: denied { read } for comm="nfc@1.1-service"
name="u:object_r:default_prop:s0" dev="tmpfs" ino=17612 scontext=u:r:hal_nfc_default:s0
tcontext=u:object_r:default_prop:s0 tclass=file permissive=0
Test: check logcat
Bug: 79417308
Change-Id: If2d0a1d3403851d819305f18c96c18eca35db7a8
This commit is contained in:
1
sepolicy/vendor/hal_nfc_default.te
vendored
1
sepolicy/vendor/hal_nfc_default.te
vendored
@@ -4,3 +4,4 @@ allow hal_nfc_default nfc_vendor_data_file:file create_file_perms;
|
||||
|
||||
dontaudit hal_nfc_default nxpese_hwservice:hwservice_manager find;
|
||||
dontaudit hal_nfc_default nxpnfc_hwservice:hwservice_manager add;
|
||||
dontaudit hal_nfc_default persist_nfc_prop:file read;
|
||||
|
||||
1
sepolicy/vendor/property.te
vendored
1
sepolicy/vendor/property.te
vendored
@@ -24,3 +24,4 @@ type vendor_radio_prop, property_type;
|
||||
type vendor_wifi_version, property_type;
|
||||
type vendor_usb_config_prop, property_type;
|
||||
type vendor_charge_prop, property_type;
|
||||
type persist_nfc_prop, property_type;
|
||||
|
||||
3
sepolicy/vendor/property_contexts
vendored
3
sepolicy/vendor/property_contexts
vendored
@@ -200,3 +200,6 @@ persist.service.bdroid.ssrlvl u:object_r:vendor_bluetooth_prop:s0
|
||||
ro.bluetooth.a4wp u:object_r:vendor_bluetooth_prop:s0
|
||||
ro.bluetooth.emb_wp_mode u:object_r:vendor_bluetooth_prop:s0
|
||||
ro.bluetooth.wipower u:object_r:vendor_bluetooth_prop:s0
|
||||
|
||||
# persist_nfc_prop
|
||||
persist.nfc. u:object_r:persist_nfc_prop:s0
|
||||
|
||||
Reference in New Issue
Block a user