Brian Duddie 27a28b2bfc Allow sensors HAL/daemon to read diag timestamp switch
Allow the sensors daemon and HAL to read the sysfs node that controls
the timestamp source to use when creating diag (QXDM/Pixel Logger) log
packets.

Denials:

avc: denied { search } for pid=758 comm=504F5349582074696D65722030
name="diagchar" dev="sysfs" ino=27415
scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:sysfs_diag:s0
tclass=dir permissive=1
avc: denied { read } for pid=758 comm=504F5349582074696D65722030
name="timestamp_switch" dev="sysfs" ino=27741
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_timestamp_switch:s0 tclass=file permissive=1
avc: denied { open } for pid=758 comm=504F5349582074696D65722030
path="/sys/module/diagchar/parameters/timestamp_switch" dev="sysfs"
ino=27741 scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_timestamp_switch:s0 tclass=file permissive=1
avc: denied { search } for pid=774 comm="sensors.qcom" name="diagchar"
dev="sysfs" ino=27415 scontext=u:r:sensors:s0
tcontext=u:object_r:sysfs_diag:s0 tclass=dir permissive=1
avc: denied { read } for pid=774 comm="sensors.qcom"
name="timestamp_switch" dev="sysfs" ino=27741 scontext=u:r:sensors:s0
tcontext=u:object_r:sysfs_timestamp_switch:s0 tclass=file permissive=1
avc: denied { open } for pid=774 comm="sensors.qcom"
path="/sys/module/diagchar/parameters/timestamp_switch" dev="sysfs"
ino=27741 scontext=u:r:sensors:s0
tcontext=u:object_r:sysfs_timestamp_switch:s0 tclass=file permissive=1

Bug: 64124346
Test: enable Pixel Logger, monitor logcat/dmesg and confirm no SELinux
      denials or permission denied error messages
Change-Id: I4f23be62e3d30674e57a0a8acfc33cc02fddbd9b
2017-07-28 10:06:04 -07:00
2017-06-30 01:33:36 +00:00
2017-07-05 11:17:31 +08:00
2017-04-21 11:21:57 -07:00
2017-04-26 21:09:10 +00:00
2017-07-05 11:17:31 +08:00
2017-05-25 11:40:24 -07:00
2017-04-19 18:29:26 -07:00
2017-07-27 21:57:06 +00:00
2017-03-21 10:28:34 -07:00
2017-07-25 13:25:59 -07:00
Description
No description provided
4.4 MiB
Languages
C++ 54.8%
Makefile 33.2%
C 5.5%
Shell 4.6%
Python 1.3%
Other 0.6%