mirror of
https://github.com/LineageOS/android_device_xiaomi_whyred.git
synced 2025-10-03 01:39:16 +02:00
whyred: Import seccomp policy from miui
This commit is contained in:
parent
669fc34984
commit
237e4556e0
3 changed files with 22 additions and 0 deletions
|
@ -131,5 +131,10 @@ PRODUCT_PACKAGES += \
|
||||||
libOmxG711Enc \
|
libOmxG711Enc \
|
||||||
libstagefrighthw
|
libstagefrighthw
|
||||||
|
|
||||||
|
# Seccomp policy
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/seccomp/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
|
||||||
|
$(LOCAL_PATH)/seccomp/mediaextractor.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
|
||||||
|
|
||||||
# Call the proprietary setup
|
# Call the proprietary setup
|
||||||
$(call inherit-product, vendor/xiaomi/whyred/whyred-vendor.mk)
|
$(call inherit-product, vendor/xiaomi/whyred/whyred-vendor.mk)
|
||||||
|
|
12
seccomp/mediacodec.policy
Normal file
12
seccomp/mediacodec.policy
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# device specific syscalls
|
||||||
|
# extension of services/mediacodec/minijail/seccomp_policy/mediacodec-seccomp-arm.policy
|
||||||
|
pselect6: 1
|
||||||
|
eventfd2: 1
|
||||||
|
sendto: 1
|
||||||
|
recvfrom: 1
|
||||||
|
_llseek: 1
|
||||||
|
sysinfo: 1
|
||||||
|
getcwd: 1
|
||||||
|
getdents64: 1
|
||||||
|
inotify_init1: 1
|
||||||
|
inotify_add_watch: 1
|
5
seccomp/mediaextractor.policy
Normal file
5
seccomp/mediaextractor.policy
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# device specific syscalls.
|
||||||
|
# extension of services/mediaextractor/minijail/seccomp_policy/mediaextractor-seccomp-arm.policy
|
||||||
|
readlinkat: 1
|
||||||
|
pread64: 1
|
||||||
|
mremap: 1
|
Loading…
Add table
Add a link
Reference in a new issue