- 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.
29 lines
1.5 KiB
Plaintext
29 lines
1.5 KiB
Plaintext
# Memtier -- see file.te for why this needs its own narrow type
|
|
genfscon proc /sys/vm/min_free_kbytes u:object_r:proc_min_free_kbytes:s0
|
|
|
|
# Hwinfo -- see file.te for why this needs its own narrow type
|
|
genfscon sysfs /firmware/devicetree/base/chosen/bootloader u:object_r:sysfs_pawlet_bootloader_version:s0
|
|
|
|
# CEC
|
|
genfscon sysfs /devices/platform/axi/axi:gpu/drm/card1/card1-HDMI-A-1/status u:object_r:sysfs_hdmi:s0
|
|
genfscon sysfs /devices/platform/axi/axi:gpu/drm/card1/card1-HDMI-A-2/status u:object_r:sysfs_hdmi:s0
|
|
|
|
# Graphics
|
|
genfscon sysfs /devices/platform/axi/1002000000.v3d u:object_r:sysfs_gpu:s0
|
|
genfscon sysfs /devices/platform/axi/axi:gpu u:object_r:sysfs_gpu:s0
|
|
|
|
# Lights
|
|
genfscon sysfs /class/backlight/10-0045/brightness u:object_r:sysfs_leds:s0
|
|
genfscon sysfs /class/backlight/10-0045/max_brightness u:object_r:sysfs_leds:s0
|
|
genfscon sysfs /class/backlight/11-0045/brightness u:object_r:sysfs_leds:s0
|
|
genfscon sysfs /class/backlight/11-0045/max_brightness u:object_r:sysfs_leds:s0
|
|
genfscon sysfs /class/backlight/rpi_backlight/brightness u:object_r:sysfs_leds:s0
|
|
genfscon sysfs /class/backlight/rpi_backlight/max_brightness u:object_r:sysfs_leds:s0
|
|
|
|
# Serial number
|
|
genfscon sysfs /firmware/devicetree/base/serial-number u:object_r:sysfs_dt_firmware_android:s0
|
|
|
|
# Suspend
|
|
genfscon sysfs /devices/platform/soc/soc:rpi_rtc/rtc/rtc0/alarmtimer.0.auto/wakeup/wakeup1 u:object_r:sysfs_wakeup:s0
|
|
genfscon sysfs /devices/platform/soc/soc:rpi_rtc/wakeup/wakeup0 u:object_r:sysfs_wakeup:s0
|