Label sysfs rtc nodes.

Address these denials:
avc: denied { open } for path="/sys/devices/pnp0/00:00/rtc/rtc0/hctosys"
dev="sysfs" ino=9730 scontext=u:r:system_server:s0
tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

avc: denied { read } for name="hctosys" dev="sysfs" ino=9730
scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs:s0 tclass=file
permissive=1

AlarmManagerService in system_server reads files from /sys/class/rtc,
which is a symlink to /sys/devices/pnp0/00:00/rtc on cuttlefish.

Bug: 28053261
Test: boot cuttlefish without above denials
Test: /sys/devices/pnp0/00:00/rtc/* are labeled with sysfs_rtc
Change-Id: I71f75e586400f54532e2766a2f6505b4d1a14749
1 file changed