]> git.ipfire.org Git - people/ms/dhcpcd.git/commitdiff
privsep: adjust comment for prior
authorMatthew Clarkson <mclarkson@reliablecontrols.com>
Thu, 19 Nov 2020 19:15:12 +0000 (19:15 +0000)
committerRoy Marples <roy@marples.name>
Thu, 19 Nov 2020 19:15:12 +0000 (19:15 +0000)
Note that this is a requirement for printf over serial terminals.

src/privsep-linux.c

index 306eb2498993d65fb6a471fdb5aa30fea236aa98..e588ecd7d6b2180b84a5443991a0635b3344a5ac 100644 (file)
@@ -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 */