mediaserver: allow loading shared library with text relocation

Bionic commit 8fdb3419a51ffeda64f9c811f22a42edf9c7f633 modified how we
handle shared libraries with text relocations, which triggered
an execmod denial when handling /system/vendor/lib/libmmjpeg.so.

Allow the mediaserver process to load shared libraries with text
relocations.

STEPS TO REPRODUCE:
  1.Flash and Factory wipe the device.
  2.Launch Camera.
  3.Capture image tapping on shutter button and observe.
  4.Then try to switch to video mode and observe.

OBSERVED RESULTS:
  Shutter button gets disabled on capturing a picture and then
  switching to video mode displays 'Can't connect to camera error'

EXPECTED RESULTS:
  Camera should work without any error.

Addresses the following denial:

   avc: denied { execmod } for path="/system/vendor/lib/libmmjpeg.so" dev="mmcblk0p25" ino=1734 scontext=u:r:mediaserver:s0 tcontext=u:object_r:system_file:s0 tclass=file

Bug: 20081970
Bug: 20013628
Change-Id: Ie98e7316bd124d58ebb1c529acc865074c8851e6
1 file changed