Android Wear 8.0.0 Release 2 (OWDS.181106.001)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXAl4ywAKCRDorT+BmrEO
eHhPAKCG9hULRDPH3gxdm4mxtmIIyDTsbgCeO2ZifLniCeOKr1kM3ie178cWa8M=
=Mylf
-----END PGP SIGNATURE-----
Allow pixelstats_vendor to call getsockopt on uevent socket

We are making a change to uevent_open_socket() in libcutils related to
setting the receive buffer size of netlink uevent sockets.

After setting SO_RCVBUF, we immediately read it back using getsockopt()
to verify that the setsockopt() call was effective. Only if it was not
effective, we call setsockopt() with SO_RCVBUFFORCE.

getsockopt() previously caused SELinux denials like the following:

 avc: denied { getopt } for comm="pixelstats-vend" scontext=u:r:pixelstats_vendor:s0 tcontext=u:r:pixelstats_vendor:s0 tclass=netlink_kobject_uevent_socket permissive=0

Bug: 120477993
Change-Id: I4b14b0dc859b77108ccf841d8cdae3810aaf3328
1 file changed
tree: 570774b65f175abe583838b8d21bd809c4ea0064
  1. OWNERS
  2. crosshatch-sepolicy.mk
  3. private/
  4. public/
  5. vendor/