xpeng: Commonize sepolicy

Change-Id: Idbc4e5f655fd19cc4754aab99d8bb236a73f9a12
This commit is contained in:
Marc Bourgoin 2023-04-28 08:44:32 -06:00
parent 3990edbe31
commit 0b7fd0697a
7 changed files with 0 additions and 38 deletions

View file

@ -45,8 +45,5 @@ TARGET_RECOVERY_UI_MARGIN_HEIGHT := 90
# Security # Security
VENDOR_SECURITY_PATCH := 2023-03-01 VENDOR_SECURITY_PATCH := 2023-03-01
# SELinux
BOARD_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor
# inherit from the proprietary version # inherit from the proprietary version
include vendor/motorola/xpeng/BoardConfigVendor.mk include vendor/motorola/xpeng/BoardConfigVendor.mk

View file

@ -1,14 +0,0 @@
# HAL Services
/(vendor|system/vendor)/bin/hw/android\.hardware\.lights-service\.xpeng u:object_r:hal_light_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service\.xpeng u:object_r:hal_light_default_exec:s0
/(vendor|system/vendor)/bin/init\.oem\.(fingerprint2|fingerprint\.overlay)\.sh u:object_r:vendor_init_fingerprint_exec:s0
/(vendor|system/vendor)/bin/hw/egis_ident u:object_r:hal_fingerprint_default_exec:s0
/(vendor|system/vendor)/bin/hw/fpc_ident u:object_r:hal_fingerprint_default_exec:s0
/(vendor|system/vendor)/bin/hw/goodix_ident u:object_r:hal_fingerprint_default_exec:s0
# Fingerprint
/(mnt/vendor)/persist/egis(/.*)? u:object_r:fingerprint_vendor_data_file:s0
/sys/devices/soc/0.et320(/.*)? u:object_r:vendor_sysfs_fingerprint:s0
# Vendor init scripts
/(vendor|system/vendor)/bin/load_touch\.sh u:object_r:vendor_qti_init_shell_exec:s0

View file

@ -1,7 +0,0 @@
# Fingerprint
genfscon sysfs /devices/platform/egis_input u:object_r:vendor_sysfs_fingerprint:s0
genfscon sysfs /devices/platform/egis_input/navigation_enable u:object_r:vendor_sysfs_fingerprint:s0
genfscon sysfs /devices/platform/egis_input/navigation_event u:object_r:vendor_sysfs_fingerprint:s0
# Lights
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-05/c440000.qcom,spmi:qcom,pm8150l@5:qcom,leds@d000/leds/charging u:object_r:sysfs_leds:s0

View file

@ -1,2 +0,0 @@
allow hal_fingerprint_default vendor_sysfs_fingerprint:dir search;
allow hal_fingerprint_default vendor_sysfs_fingerprint:file { getattr open write };

View file

@ -1,5 +0,0 @@
allow hal_light_default {
sysfs_leds
}:file rw_file_perms;
r_dir_file(hal_light_default, sysfs_leds)

View file

@ -1,2 +0,0 @@
# Fingerprint
vendor.egistec.hardware.fingerprint::IBiometricsFingerprintEts u:object_r:hal_fingerprint_hwservice:s0

View file

@ -1,5 +0,0 @@
# Write to /dev/kmsg
allow vendor_init_fingerprint kmsg_device:chr_file rw_file_perms;
allow vendor_init_fingerprint kernel:key search;
allow vendor_init_fingerprint mnt_vendor_file:file { getattr open read };