# HG changeset patch # User Matthew Clarkson # Date 1605800253 0 # Node ID f233c9381c56b0878d7f8db9a925c3759ff9a0da # Parent a6ee95eb8e601df7950212196c2fc13e75dc9d22 privsep: Allow ioctl TCGETS printf on some platforms seems to require it. Without this, script_dump() may fault. diff -r a6ee95eb8e60 -r f233c9381c56 src/privsep-linux.c --- a/src/privsep-linux.c Fri Nov 13 08:22:42 2020 +0000 +++ b/src/privsep-linux.c Thu Nov 19 15:37:33 2020 +0000 @@ -257,6 +257,8 @@ SECCOMP_ALLOW_ARG(__NR_ioctl, 1, SIOCGIFINDEX), SECCOMP_ALLOW_ARG(__NR_ioctl, 1, SIOCGIFMTU), SECCOMP_ALLOW_ARG(__NR_ioctl, 1, SIOCGIFVLAN), + /* printf on some platforms seems to use this ioctl */ + SECCOMP_ALLOW_ARG(__NR_ioctl, 1, TCGETS), /* SECCOMP BPF is newer than nl80211 so we don't need SIOCGIWESSID * which lives in the impossible to include linux/wireless.h header */ #endif