Put gs_watchdog settings to one place

Bug: 248428203
Test: gs_watchdog is still in system_ext
Change-Id: Iaa0e1871a4459af02a004f7b3b2861b53709c608
This commit is contained in:
Adam Shih 2022-09-28 10:14:31 +08:00
parent 262892227c
commit 0f84ba2bb5
4 changed files with 20 additions and 6 deletions

View File

@ -21,9 +21,3 @@ PRODUCT_SOONG_NAMESPACES += \
PRODUCT_PROPERTY_OVERRIDES += \
vendor.media.omx=0
# Platform watchdogd
PRODUCT_PACKAGES += gs_watchdogd
PRODUCT_SOONG_NAMESPACES += \
device/google/gs-common/gs_watchdogd
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
hardware/google/pixel-sepolicy/gs_watchdogd

View File

@ -0,0 +1,5 @@
# Platform watchdogd
/system_ext/bin/gs_watchdogd u:object_r:gs_watchdogd_exec:s0
# Devices
/dev/watchdog[0-9] u:object_r:watchdog_device:s0

View File

@ -0,0 +1,9 @@
# gs_watchdogd seclabel is specified in init.<board>.rc
type gs_watchdogd, domain, coredomain;
type gs_watchdogd_exec, system_file_type, exec_type, file_type;
init_daemon_domain(gs_watchdogd)
allow gs_watchdogd watchdog_device:chr_file rw_file_perms;
allow gs_watchdogd kmsg_device:chr_file rw_file_perms;
allow gs_watchdogd sysfs:dir r_dir_perms;

6
gs_watchdogd/watchdog.mk Normal file
View File

@ -0,0 +1,6 @@
# Platform watchdogd
PRODUCT_PACKAGES += gs_watchdogd
PRODUCT_SOONG_NAMESPACES += \
device/google/gs-common/gs_watchdogd
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
device/google/gs-common/gs_watchdogd/sepolicy