From 450a51cc1b6eda96687fa52ede208034b7ec2e12 Mon Sep 17 00:00:00 2001 From: Matthew Clarkson Date: Thu, 19 Nov 2020 19:15:12 +0000 Subject: [PATCH] privsep: adjust comment for prior Note that this is a requirement for printf over serial terminals. --- src/privsep-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/privsep-linux.c b/src/privsep-linux.c index 306eb249..e588ecd7 100644 --- a/src/privsep-linux.c +++ b/src/privsep-linux.c @@ -257,7 +257,7 @@ static struct sock_filter ps_seccomp_filter[] = { 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 */ + /* printf over serial terminal requires this */ 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 */ -- 2.47.3