Browse Source

msm8976-common: mediacodec: Allow select and eventfd syscalls for 8976

Add pselect6 and eventfd2 syscalls
Includes following:
mediacodec: allow sendto and recvfrom syscalls
mediacodec: allow lseek syscall
mediaextractor: allow pread64 and readlinkat syscalls

Change-Id: Iff6e2f7fc0562a520f56cbf4bbce72f1af545f9c
changes/54/206254/1
Paras Nagda 6 years ago committed by LuK1337
parent
commit
f4440a00e8
  1. 5
      msm8976.mk
  2. 7
      seccomp/mediacodec-seccomp.policy
  3. 4
      seccomp/mediaextractor-seccomp.policy

5
msm8976.mk

@ -244,6 +244,11 @@ PRODUCT_PACKAGES += \ @@ -244,6 +244,11 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
android.hardware.renderscript@1.0-impl
# Seccomp
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:system/vendor/etc/seccomp_policy/mediacodec.policy \
$(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:system/vendor/etc/seccomp_policy/mediaextractor.policy
# Sensors
PRODUCT_PACKAGES += \
android.hardware.sensors@1.0-impl

7
seccomp/mediacodec-seccomp.policy

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
# device specific syscalls
# extension of services/mediacodec/minijail/seccomp_policy/mediacodec-seccomp-arm.policy
pselect6: 1
eventfd2: 1
sendto: 1
recvfrom: 1
_llseek: 1

4
seccomp/mediaextractor-seccomp.policy

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
# device specific syscalls.
# extension of services/mediaextractor/minijail/seccomp_policy/mediaextractor-seccomp-arm.policy
readlinkat: 1
pread64: 1
Loading…
Cancel
Save