Add sepolicy for rtc-test driver
When updating the kernel for cuttlefish, new sepolicy denials are seen:
avc: denied { read } for comm="system_server" name="hctosys" dev="sysfs"
ino=9707 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs:s0
tclass=file permissive=1
avc: denied { open } for comm="system_server"
path="/sys/devices/platform/rtc-test.0/rtc/rtc0/hctosys" dev="sysfs"
ino=9707 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs:s0
tclass=file permissive=1
avc: denied { getattr } for comm="system_server"
path="/sys/devices/platform/rtc-test.0/rtc/rtc0/hctosys" dev="sysfs"
ino=9707 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs:s0
tclass=file permissive=1
Although system_server is in "permissive" mode right now, this may not
be the case forever, so fix these warnings.
Bug: 127373130
Change-Id: Ic4e98b989db3a4dd27f4f9a7f083c14503785a42
Signed-off-by: Alistair Delva <adelva@google.com>
1 file changed