screenrecord: Fix mediacodec selinux and seccomp policy denials

Fix mediacodec selinux and seccomp denials for
screenrecord to work.

mediacodec need gpu access, plus it also crashes
with following seccomp error during screenrecord:

E android.hardware.media.omx@1.0-service: libminijail[488]: blocked syscall: sysinfo

So allow sysinfo syscall for mediacodec by
re-using the same seccomp_policy which we use for
mediaswcodec (aosp/1238348).

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I62fd7ef159c520a26be83cd57ec72e1d51adfa52
2 files changed