sdm710-common Unblock madvise syscall for dspservice

Without this, dspservice crashes infinitely on vela:

I init    : starting service 'vendor.dspservice'...
W dspservice: libminijail[3387]: failed to get path of fd 3: No such file or directory
W dspservice: libminijail[3387]: allowing syscall: connect
W dspservice: libminijail[3387]: allowing syscall: fcntl
W dspservice: libminijail[3387]: allowing syscall: sendto
W dspservice: libminijail[3387]: allowing syscall: socket
W dspservice: libminijail[3387]: allowing syscall: writev
W dspservice: libminijail[3387]: logging seccomp filter failures
E dspservice: libminijail[3387]: blocked syscall: madvise
I init    : Service 'vendor.dspservice' (pid 3387) received signal 31
I init    : Sending signal 9 to service 'vendor.dspservice' (pid 3387) process group...

Co-authored-by: Ivan Vecera <ivan@cera.cz>
Change-Id: Icc6a75f1ceb83f7363fbac325a24e34e7505d74d
This commit is contained in:
me-cafebabe 2023-02-12 15:29:24 +00:00 committed by CakesTwix
parent 3ed51b56b7
commit 4f52dea677
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825

View file

@ -58,6 +58,14 @@ if [ -z "${SRC}" ]; then
SRC="adb" SRC="adb"
fi fi
function blob_fixup() {
case "${1}" in
vendor/etc/seccomp_policy/vendor.qti.hardware.dsp.policy)
echo 'madvise: 1' >> ${2}
;;
esac
}
if [ -z "${ONLY_TARGET}" ]; then if [ -z "${ONLY_TARGET}" ]; then
# Initialize the helper for common device # Initialize the helper for common device
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}" setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}"