- Label the chosen/bootloader device-tree node (sysfs path; /proc/device-tree is only a symlink) and /dev/vcio for the native pawlet-hwinfo helper. - Allow pawlet_memtier to exec the vendor shell and toybox. - Let platform_app read ro.vendor.pawlet.hw.* for the hardware info screen.
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
# pawlet-hwinfo (vendor/pawlet/hwinfo): early-boot oneshot that reads the
|
|
# RPi bootloader/EEPROM firmware version from the kernel-populated
|
|
# device-tree chosen node and exposes it as ro.vendor.pawlet.hw.*
|
|
# properties. Had no domain at all before (real bug found 2026-10-11
|
|
# alongside the pawlet-memtier/pawlet-recoveryboot file_contexts fix --
|
|
# same symptom, never started on a real boot) -- new domain, same pattern
|
|
# as pawlet_memtier.
|
|
|
|
type pawlet_hwinfo, domain;
|
|
type pawlet_hwinfo_exec, exec_type, vendor_file_type, file_type;
|
|
|
|
init_daemon_domain(pawlet_hwinfo)
|
|
|
|
# /sys/firmware/devicetree/base/chosen/bootloader/{version,build-timestamp}
|
|
allow pawlet_hwinfo sysfs_pawlet_bootloader_version:dir r_dir_perms;
|
|
allow pawlet_hwinfo sysfs_pawlet_bootloader_version:file r_file_perms;
|
|
|
|
# VideoCore firmware mailbox (GET_FIRMWARE_REVISION/VARIANT/HASH ioctls)
|
|
allow pawlet_hwinfo vcio_device:chr_file rw_file_perms;
|
|
|
|
# ro.vendor.pawlet.hw.*
|
|
set_prop(pawlet_hwinfo, vendor_pawlet_hw_prop)
|
|
|
|
# LOG() goes to the kernel log (KernelLogger)
|
|
allow pawlet_hwinfo kmsg_device:chr_file w_file_perms;
|