summaryrefslogtreecommitdiff
path: root/device-common.mk
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2021-01-15 02:21:28 +0530
committerAlistair Delva <adelva@google.com>2021-01-19 21:14:55 +0000
commit6d532aebe85c285bfd15fc4347c7478c60bda5d5 (patch)
tree84bf87e8a9f9d9e718ed6a2e469f4c783a2406b2 /device-common.mk
parent0e1b77023eb9c23d9eada65ecc842447704fec0e (diff)
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
Diffstat (limited to 'device-common.mk')
-rw-r--r--device-common.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/device-common.mk b/device-common.mk
index 88d4221..918bed0 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -139,6 +139,7 @@ PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml
PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
$(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaswcodec.policy
# Copy hardware config file(s)