Skip to content

Commit

Permalink
garnet: Add permission for gettid syscall in sensors-qesdk
Browse files Browse the repository at this point in the history
01-05 13:22:11.005 15761 15761 E sensors-qesdk: libminijail[15761]: blocked syscall: gettid
  • Loading branch information
c0pt4n authored and kleidione committed Jan 22, 2025
1 parent 6576853 commit eceebfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extract-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ function blob_fixup() {
[ "$2" = "" ] && return 0
sed -i 's/on charger/on property:init.svc.vendor.charger=running/g' "${2}"
;;
vendor/etc/seccomp_policy/atfwd@2.0.policy | vendor/etc/seccomp_policy/c2audio.vendor.ext-arm64.policy | vendor/etc/seccomp_policy/wfdhdcphalservice.policy)
vendor/etc/seccomp_policy/atfwd@2.0.policy | vendor/etc/seccomp_policy/c2audio.vendor.ext-arm64.policy | vendor/etc/seccomp_policy/wfdhdcphalservice.policy | vendor/etc/seccomp_policy/sensors-qesdk.policy)
[ "$2" = "" ] && return 0
case "$1" in
vendor/etc/seccomp_policy/c2audio.vendor.ext-arm64.policy)
grep -q "setsockopt: 1" "${2}" || { sed -i -e '$a\setsockopt: 1' "${2}"; }
;;
vendor/etc/seccomp_policy/atfwd@2.0.policy | vendor/etc/seccomp_policy/wfdhdcphalservice.policy)
vendor/etc/seccomp_policy/atfwd@2.0.policy | vendor/etc/seccomp_policy/wfdhdcphalservice.policy | vendor/etc/seccomp_policy/sensors-qesdk.policy)
grep -q "gettid: 1" "${2}" || { sed -i -e '$a\gettid: 1' "${2}"; }
;;
esac
Expand Down

0 comments on commit eceebfe

Please sign in to comment.