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:
parent
3ed51b56b7
commit
4f52dea677
1 changed files with 8 additions and 0 deletions
|
@ -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}"
|
||||||
|
|
Loading…
Reference in a new issue