From cecd829f6fc58d982d10baae5d6b9246958aa88c Mon Sep 17 00:00:00 2001 From: Tai Kuo Date: Wed, 8 Feb 2023 13:44:46 +0800 Subject: [PATCH] Remove hal_vibrator_default and vendor_init tracking_denials Build P23 CS40l26 project from hardware/google/pixel/vibrator/cs40l26/device.mk and use the sepolicy from hardware/google/pixel-sepolicy/vibrator/cs40l26 and hardware/google/pixel-sepolicy/vibrator/common. Bug: 267843409 Fix: 260366169 Fix: 264490051 Test: HAL init properly Test: dumpsys android.hardware.vibrator.IVibrator/default Test: m atest && atest-dev \ com.google.android.selinux.pts.SELinuxTest#scanAvcDeniedLogRightAfterReboot Test: m atest && atest-dev \ com.google.android.selinux.pts.SELinuxTest#scanBugreport Change-Id: I4448bbdb03b0a06080d5bccf2708c86c10d4fb26 --- tracking_denials/hal_vibrator_default.te | 35 ------------------------ tracking_denials/vendor_init.te | 1 - 2 files changed, 36 deletions(-) delete mode 100644 tracking_denials/hal_vibrator_default.te diff --git a/tracking_denials/hal_vibrator_default.te b/tracking_denials/hal_vibrator_default.te deleted file mode 100644 index 5dbb95c5..00000000 --- a/tracking_denials/hal_vibrator_default.te +++ /dev/null @@ -1,35 +0,0 @@ -# b/260366169 -dontaudit hal_vibrator_default input_device:chr_file { getattr }; -dontaudit hal_vibrator_default input_device:chr_file { ioctl }; -dontaudit hal_vibrator_default input_device:chr_file { open }; -dontaudit hal_vibrator_default input_device:chr_file { read write }; -dontaudit hal_vibrator_default input_device:dir { open }; -dontaudit hal_vibrator_default input_device:dir { read }; -dontaudit hal_vibrator_default input_device:dir { search }; -dontaudit hal_vibrator_default mnt_vendor_file:dir { search }; -dontaudit hal_vibrator_default persist_file:dir { search }; -dontaudit hal_vibrator_default persist_haptics_file:dir { search }; -dontaudit hal_vibrator_default persist_haptics_file:file { getattr }; -dontaudit hal_vibrator_default persist_haptics_file:file { open }; -dontaudit hal_vibrator_default persist_haptics_file:file { read }; -dontaudit hal_vibrator_default proc_asound:dir { search }; -dontaudit hal_vibrator_default proc_asound:file { getattr }; -dontaudit hal_vibrator_default proc_asound:file { open }; -dontaudit hal_vibrator_default proc_asound:file { read }; -dontaudit hal_vibrator_default sysfs:file { getattr }; -dontaudit hal_vibrator_default sysfs:file { open }; -dontaudit hal_vibrator_default sysfs:file { read }; -dontaudit hal_vibrator_default sysfs:file { write }; -dontaudit hal_vibrator_default vendor_vibrator_prop:file { getattr }; -dontaudit hal_vibrator_default vendor_vibrator_prop:file { map }; -dontaudit hal_vibrator_default vendor_vibrator_prop:file { open }; -dontaudit hal_vibrator_default vendor_vibrator_prop:file { read }; -dontaudit hal_vibrator_default vndbinder_device:chr_file { ioctl }; -dontaudit hal_vibrator_default vndbinder_device:chr_file { map }; -dontaudit hal_vibrator_default vndbinder_device:chr_file { open }; -dontaudit hal_vibrator_default vndbinder_device:chr_file { read }; -dontaudit hal_vibrator_default vndbinder_device:chr_file { write }; -# b/264490051 -userdebug_or_eng(` - permissive hal_vibrator_default; -') \ No newline at end of file diff --git a/tracking_denials/vendor_init.te b/tracking_denials/vendor_init.te index 4729cedf..2c9f8682 100644 --- a/tracking_denials/vendor_init.te +++ b/tracking_denials/vendor_init.te @@ -16,4 +16,3 @@ dontaudit vendor_init logpersistd_logging_prop:property_service { set }; dontaudit vendor_init vendor_camera_debug_prop:property_service { set }; dontaudit vendor_init vendor_logger_prop:property_service { set }; dontaudit vendor_init vendor_slog_prop:property_service { set }; -dontaudit vendor_init vendor_vibrator_prop:property_service { set };