mediaswcodec: Fix selinux and seccomp policy denials
Fix mediaswcodec selinux and seccomp denials for video
playback to work with software codecs.
mediaswcodec need gpu access, plus it also crashes with
following seccomp error during video playback:
E media.swcodec: libminijail[2139]: blocked syscall: sysinfo
So whitelist sysinfo syscall for mediaswcodec.
Change-Id: I11db36aeda475c4ca73121efb8b2bfd3d7590be0
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
diff --git a/sepolicy/mediaswcodec.te b/sepolicy/mediaswcodec.te
new file mode 100644
index 0000000..57fb75c
--- /dev/null
+++ b/sepolicy/mediaswcodec.te
@@ -0,0 +1,2 @@
+gpu_access(mediaswcodec)
+allow mediaswcodec gpu_device:chr_file { getattr ioctl map open read write };