1# crosvm (x86) 2genfscon sysfs /devices/pci0000:00/0000:00:0b.0/virtio10/net u:object_r:sysfs_net:s0 # buried_eth0 & wlan0 3genfscon sysfs /devices/pci0000:00/0000:00:0c.0/virtio11/net u:object_r:sysfs_net:s0 # rmnet0 4genfscon sysfs /devices/pci0000:00/0000:00:0e.0/device u:object_r:sysfs_gpu:s0 5genfscon sysfs /devices/pci0000:00/0000:00:0e.0/subsystem_device u:object_r:sysfs_gpu:s0 6genfscon sysfs /devices/pci0000:00/0000:00:0e.0/subsystem_vendor u:object_r:sysfs_gpu:s0 7genfscon sysfs /devices/pci0000:00/0000:00:0e.0/uevent u:object_r:sysfs_gpu:s0 8genfscon sysfs /devices/pci0000:00/0000:00:0e.0/vendor u:object_r:sysfs_gpu:s0 9## find /sys/devices/platform/* -type d -name 'rtc[0-9]' | sed 's,/rtc[0-9],,' 10## x86 rtc_cmos on crosvm does not currently expose rtcN/hctosys 11## find /sys/devices/platform/* -type d -name 'wakeup[0-9]' 12genfscon sysfs /devices/platform/rtc_cmos/wakeup/wakeup0 u:object_r:sysfs_wakeup:s0 13genfscon sysfs /devices/platform/rtc-test.1/wakeup/wakeup1 u:object_r:sysfs_wakeup:s0 14genfscon sysfs /devices/platform/rtc-test.1/rtc/rtc1/wakeup2 u:object_r:sysfs_wakeup:s0 # <= 5.5 15genfscon sysfs /devices/platform/rtc-test.1/rtc/rtc1/alarmtimer.0.auto/wakeup/wakeup2 u:object_r:sysfs_wakeup:s0 # >5.5 16genfscon sysfs /devices/platform/rtc-test.2/wakeup/wakeup3 u:object_r:sysfs_wakeup:s0 17 18# crosvm (arm64) 19genfscon sysfs /devices/platform/10000.pci/pci0000:00/0000:00:0b.0/virtio9/net u:object_r:sysfs_net:s0 # buried_eth0 & wlan0 20genfscon sysfs /devices/platform/10000.pci/pci0000:00/0000:00:0c.0/virtio10/net u:object_r:sysfs_net:s0 # rmnet0 21genfscon sysfs /devices/platform/10000.pci/pci0000:00/0000:00:0e.0/device u:object_r:sysfs_gpu:s0 22genfscon sysfs /devices/platform/10000.pci/pci0000:00/0000:00:0e.0/subsystem_device u:object_r:sysfs_gpu:s0 23genfscon sysfs /devices/platform/10000.pci/pci0000:00/0000:00:0e.0/subsystem_vendor u:object_r:sysfs_gpu:s0 24genfscon sysfs /devices/platform/10000.pci/pci0000:00/0000:00:0e.0/uevent u:object_r:sysfs_gpu:s0 25genfscon sysfs /devices/platform/10000.pci/pci0000:00/0000:00:0e.0/vendor u:object_r:sysfs_gpu:s0 26## find /sys/devices/platform/* -type d -name 'rtc[0-9]' | sed 's,/rtc[0-9],,' 27genfscon sysfs /devices/platform/2000.rtc/rtc u:object_r:sysfs_rtc:s0 28## find /sys/devices/platform/* -type d -name 'wakeup[0-9]' 29## arm64 2000.rtc on crosvm does not currently expose a wakeup node 30genfscon sysfs /devices/platform/rtc-test.1/wakeup/wakeup0 u:object_r:sysfs_wakeup:s0 31genfscon sysfs /devices/platform/rtc-test.1/rtc/rtc2/wakeup1 u:object_r:sysfs_wakeup:s0 # <= 5.5 32genfscon sysfs /devices/platform/rtc-test.1/rtc/rtc2/alarmtimer.0.auto/wakeup/wakeup1 u:object_r:sysfs_wakeup:s0 # >5.5 33genfscon sysfs /devices/platform/rtc-test.2/wakeup/wakeup2 u:object_r:sysfs_wakeup:s0 34 35# qemu (x86) 36genfscon sysfs /devices/pci0000:00/0000:00:0a.0/virtio8/net u:object_r:sysfs_net:s0 # buried_eth0 & wlan0 37genfscon sysfs /devices/pci0000:00/0000:00:0b.0/virtio9/net u:object_r:sysfs_net:s0 # rmnet0 38# FIXME: Add sysfs_gpu labels for qemu 39## find /sys/devices/platform/* -type d -name 'rtc[0-9]' | sed 's,/rtc[0-9],,' 40genfscon sysfs /devices/pnp0/00:00/rtc u:object_r:sysfs_rtc:s0 41## find /sys/devices/platform/* -type d -name 'wakeup[0-9][0-9]' 42genfscon sysfs /devices/pnp0/00:00/wakeup/wakeup13 u:object_r:sysfs_wakeup:s0 43genfscon sysfs /devices/pnp0/00:00/rtc/rtc0/wakeup14 u:object_r:sysfs_wakeup:s0 # <= 5.5 44genfscon sysfs /devices/pnp0/00:00/rtc/rtc0/alarmtimer.0.auto/wakeup/wakeup14 u:object_r:sysfs_wakeup:s0 # >5.5 45genfscon sysfs /devices/platform/rtc-test.1/wakeup/wakeup15 u:object_r:sysfs_wakeup:s0 46genfscon sysfs /devices/platform/rtc-test.2/wakeup/wakeup16 u:object_r:sysfs_wakeup:s0 47 48# qemu (arm64) 49genfscon sysfs /devices/platform/4010000000.pcie/pci0000:00/0000:00:09.0/virtio8/net u:object_r:sysfs_net:s0 # buried_eth0 & wlan0 50genfscon sysfs /devices/platform/4010000000.pcie/pci0000:00/0000:00:0a.0/virtio9/net u:object_r:sysfs_net:s0 # rmnet0 51# FIXME: Add sysfs_gpu labels for qemu 52## find /sys/devices/platform/* -type d -name 'rtc[0-9]' | sed 's,/rtc[0-9],,' 53genfscon sysfs /devices/platform/9010000.pl031/rtc u:object_r:sysfs_rtc:s0 54## find /sys/devices/platform/* -type d -name 'wakeup[0-9]' 55genfscon sysfs /devices/platform/9010000.pl031/wakeup/wakeup0 u:object_r:sysfs_wakeup:s0 56genfscon sysfs /devices/platform/9010000.pl031/rtc/rtc0/wakeup1 u:object_r:sysfs_wakeup:s0 # <= 5.5 57genfscon sysfs /devices/platform/9010000.pl031/rtc/rtc0/alarmtimer.0.auto/wakeup/wakeup1 u:object_r:sysfs_wakeup:s0 # >5.5 58genfscon sysfs /devices/platform/rtc-test.1/wakeup/wakeup2 u:object_r:sysfs_wakeup:s0 59#genfscon sysfs /devices/platform/rtc-test.2/wakeup/wakeup3 u:object_r:sysfs_wakeup:s0 60 61# common on all platforms / vm managers 62genfscon sysfs /devices/platform/rtc-test.0/rtc u:object_r:sysfs_rtc:s0 63genfscon sysfs /devices/platform/rtc-test.1/rtc u:object_r:sysfs_rtc:s0 64genfscon sysfs /devices/platform/rtc-test.2/rtc u:object_r:sysfs_rtc:s0 65genfscon sysfs /bus/iio/devices u:object_r:sysfs_iio_devices:s0 66