robsd-exec: timeout 3600s + . /usr/local/libexec/robsd/util-regress.sh + config_load + << "EOF" + _err=0 + _env=REGRESS_FAIL_EARLY=no + config_value regress-sys/kern/pledge-env + 2> /dev/null + _env=REGRESS_FAIL_EARLY=no GOCACHE=/tmp + _make=make -C /home/src/regress/sys/kern/pledge REGRESS_FAIL_EARLY=no GOCACHE=/tmp + config_value regress-sys/kern/pledge-targets + regress_root sys/kern/pledge + export SUDO + unpriv -c staff build exec make -C /home/src/regress/sys/kern/pledge REGRESS_FAIL_EARLY=no GOCACHE=/tmp regress ===> sigabrt ==== run-regress-sigabrt ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sys/kern/pledge/sigabrt/sigabrt.c cc -o sigabrt sigabrt.o rm -f ./sigabrt.core ulimit -c unlimited && if ./sigabrt; then false; else true; fi permitted STDIO Abort trap (core dumped) if [ ! -e ./sigabrt.core ]; then echo "No coredump"; false; fi ./sigabrt | diff -I OpenBSD -u /home/src/regress/sys/kern/pledge/sigabrt/sigabrt.out - Abort trap (core dumped) ===> generic ==== test_normal ==== cc -O2 -pipe -Wall -Werror -MD -MP -c /home/src/regress/sys/kern/pledge/generic/main.c cc -O2 -pipe -Wall -Werror -MD -MP -c /home/src/regress/sys/kern/pledge/generic/manager.c cc -O2 -pipe -Wall -Werror -MD -MP -c /home/src/regress/sys/kern/pledge/generic/test_stdio.c cc -O2 -pipe -Wall -Werror -MD -MP -c /home/src/regress/sys/kern/pledge/generic/test_tty.c cc -O2 -pipe -Wall -Werror -MD -MP -c /home/src/regress/sys/kern/pledge/generic/pty.c cc -o generic main.o manager.o test_stdio.o test_tty.o pty.o -lutil ulimit -c unlimited && ./generic | diff -I OpenBSD -u /home/src/regress/sys/kern/pledge/generic/tests.out - generic: pledge: Invalid argument ===> ioctl ==== run-regress-pfioctl1 ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/pledge/ioctl/pfioctl1.c cc -o pfioctl1 pfioctl1.o doas -n ./pfioctl1 pf ioctl with file opened before pledge succeeds (1) pf ioctl with file opened before pledge succeeds (2) ==== run-regress-pfioctl2 ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/pledge/ioctl/pfioctl2.c cc -o pfioctl2 pfioctl2.o doas -n rm -f pfioctl2.core ulimit -c unlimited; ! doas -n ./pfioctl2 Abort trap (core dumped) doas -n rm pfioctl2.core ==== run-regress-unfdpass ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/pledge/ioctl/unfdpass.c /home/src/regress/sys/kern/pledge/ioctl/unfdpass.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] catch_sigchld(sig) ^ 1 warning generated. cc -o unfdpass unfdpass.o doas -n ./unfdpass doas -n ./unfdpass -f ===> sendrecvfd ==== test-nopledge-VREG ==== cc -O2 -pipe -Wall -Werror -MD -MP -o sendrecvfd /home/src/regress/sys/kern/pledge/sendrecvfd/sendrecvfd.c test-nopledge-VREG: expected PASS ==== test-nopledge-VDIR ==== test-nopledge-VDIR: expected PASS ==== test-nopledge-VBLK ==== test-nopledge-VBLK: expected PASS ==== test-nopledge-VCHR ==== test-nopledge-VCHR: expected PASS ==== test-nopledge-VLNK ==== test-nopledge-VLNK: expected PASS ==== test-nopledge-VSOCK ==== test-nopledge-VSOCK: expected PASS ==== test-nopledge-VFIFO ==== test-nopledge-VFIFO: expected PASS ==== test-sendfd-VREG ==== test-sendfd-VREG: expected PASS ==== test-sendfd-VDIR ==== test-sendfd-VDIR: expected FAIL Abort trap (core dumped) ==== test-sendfd-VBLK ==== test-sendfd-VBLK: expected PASS ==== test-sendfd-VCHR ==== test-sendfd-VCHR: expected PASS ==== test-sendfd-VLNK ==== test-sendfd-VLNK: expected PASS ==== test-sendfd-VSOCK ==== test-sendfd-VSOCK: expected PASS ==== test-sendfd-VFIFO ==== test-sendfd-VFIFO: expected PASS ==== test-recvfd-VREG ==== test-recvfd-VREG: expected PASS ==== test-recvfd-VDIR ==== test-recvfd-VDIR: expected FAIL sendrecvfd: child (receiver): WTERMSIG(): 6 ==== test-recvfd-VBLK ==== test-recvfd-VBLK: expected PASS ==== test-recvfd-VCHR ==== test-recvfd-VCHR: expected PASS ==== test-recvfd-VLNK ==== test-recvfd-VLNK: expected PASS ==== test-recvfd-VSOCK ==== test-recvfd-VSOCK: expected PASS ==== test-recvfd-VFIFO ==== test-recvfd-VFIFO: expected PASS ==== test-nosendfd-VREG ==== test-nosendfd-VREG: expected FAIL Abort trap (core dumped) ==== test-nosendfd-VDIR ==== test-nosendfd-VDIR: expected FAIL Abort trap (core dumped) ==== test-nosendfd-VBLK ==== test-nosendfd-VBLK: expected FAIL Abort trap ==== test-nosendfd-VCHR ==== test-nosendfd-VCHR: expected FAIL Abort trap (core dumped) ==== test-nosendfd-VLNK ==== test-nosendfd-VLNK: expected FAIL Abort trap (core dumped) ==== test-nosendfd-VSOCK ==== test-nosendfd-VSOCK: expected FAIL Abort trap (core dumped) ==== test-nosendfd-VFIFO ==== test-nosendfd-VFIFO: expected FAIL Abort trap (core dumped) ==== test-norecvfd-VREG ==== test-norecvfd-VREG: expected FAIL sendrecvfd: child (receiver): WTERMSIG(): 6 ==== test-norecvfd-VDIR ==== test-norecvfd-VDIR: expected FAIL sendrecvfd: child (receiver): WTERMSIG(): 6 ==== test-norecvfd-VBLK ==== test-norecvfd-VBLK: expected FAIL sendrecvfd: child (receiver): WTERMSIG(): 6 ==== test-norecvfd-VCHR ==== test-norecvfd-VCHR: expected FAIL sendrecvfd: child (receiver): WTERMSIG(): 6 ==== test-norecvfd-VLNK ==== test-norecvfd-VLNK: expected FAIL sendrecvfd: child (receiver): WTERMSIG(): 6 ==== test-norecvfd-VSOCK ==== test-norecvfd-VSOCK: expected FAIL sendrecvfd: child (receiver): WTERMSIG(): 6 ==== test-norecvfd-VFIFO ==== test-norecvfd-VFIFO: expected FAIL sendrecvfd: child (receiver): WTERMSIG(): 6 ===> sockopt ==== run-inet-AF_INET-SOCK_STREAM-IPPROTO_TCP-get-SOL_SOCKET-SO_ERROR-0-0-0 ==== run-inet-AF_INET-SOCK_STREAM-IPPROTO_TCP-get-SOL_SOCKET-SO_ERROR-0-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"get\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_ERROR -DOPTVAL=0 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"get\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_ERROR -DOPTVAL=0 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet) ! [ -f sockopt.core ] ==== run-inet-AF_INET-SOCK_STREAM-IPPROTO_TCP-set-SOL_SOCKET-SO_ERROR-0-ENOPROTOOPT-0 ==== run-inet-AF_INET-SOCK_STREAM-IPPROTO_TCP-set-SOL_SOCKET-SO_ERROR-0-ENOPROTOOPT-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"set\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_ERROR -DOPTVAL=0 -DERRNO=ENOPROTOOPT' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"set\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_ERROR -DOPTVAL=0 -DERRNO=ENOPROTOOPT -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet) ! [ -f sockopt.core ] ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-SOL_SOCKET-SO_RCVBUF-10000-0-0 ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-SOL_SOCKET-SO_RCVBUF-10000-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_RCVBUF -DOPTVAL=10000 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_RCVBUF -DOPTVAL=10000 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet) ! [ -f sockopt.core ] ==== run-unix-AF_LOCAL-SOCK_STREAM-0-set-SOL_SOCKET-SO_RCVBUF-10000-0-0 ==== run-unix-AF_LOCAL-SOCK_STREAM-0-set-SOL_SOCKET-SO_RCVBUF-10000-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"unix\" -DDOMAIN=AF_LOCAL -DTYPE=SOCK_STREAM -DPROTOCOL=0 -DCALL=\"set\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_RCVBUF -DOPTVAL=10000 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"unix\" -DDOMAIN=AF_LOCAL -DTYPE=SOCK_STREAM -DPROTOCOL=0 -DCALL=\"set\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_RCVBUF -DOPTVAL=10000 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio unix) ! [ -f sockopt.core ] ==== run-inet-AF_INET-SOCK_STREAM-IPPROTO_TCP-get-SOL_SOCKET-SO_TIMESTAMP-0-0-0 ==== run-inet-AF_INET-SOCK_STREAM-IPPROTO_TCP-get-SOL_SOCKET-SO_TIMESTAMP-0-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"get\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_TIMESTAMP -DOPTVAL=0 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"get\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_TIMESTAMP -DOPTVAL=0 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet) ! [ -f sockopt.core ] ==== run-inet-AF_INET-SOCK_STREAM-IPPROTO_TCP-set-SOL_SOCKET-SO_RTABLE-0-22-wroute ==== run-inet-AF_INET-SOCK_STREAM-IPPROTO_TCP-set-SOL_SOCKET-SO_RTABLE-0-22-wroute rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"set\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_RTABLE -DOPTVAL=0 -DERRNO=22' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"set\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_RTABLE -DOPTVAL=0 -DERRNO=22 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && sh -c 'ktrace ./sockopt ; [ $? = 134 ]' sockopt: pledge(stdio inet) Abort trap (core dumped) [ -f sockopt.core ] kdump | fgrep -q 'PLDG setsockopt, "wroute", errno 22 ' ==== run-0-AF_INET-SOCK_STREAM-IPPROTO_TCP-set-SOL_SOCKET-SO_RTABLE-0-0-0 ==== run-0-AF_INET-SOCK_STREAM-IPPROTO_TCP-set-SOL_SOCKET-SO_RTABLE-0-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"0\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"set\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_RTABLE -DOPTVAL=0 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"0\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"set\" -DLEVEL=SOL_SOCKET -DOPTNAME=SO_RTABLE -DOPTVAL=0 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt ! [ -f sockopt.core ] ==== run-inet-AF_INET-SOCK_STREAM-IPPROTO_TCP-set-IPPROTO_TCP-TCP_NODELAY-0-0-0 ==== run-inet-AF_INET-SOCK_STREAM-IPPROTO_TCP-set-IPPROTO_TCP-TCP_NODELAY-0-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"set\" -DLEVEL=IPPROTO_TCP -DOPTNAME=TCP_NODELAY -DOPTVAL=0 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_STREAM -DPROTOCOL=IPPROTO_TCP -DCALL=\"set\" -DLEVEL=IPPROTO_TCP -DOPTNAME=TCP_NODELAY -DOPTVAL=0 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet) ! [ -f sockopt.core ] ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-get-IPPROTO_IP-IP_OPTIONS-0-0-0 ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-get-IPPROTO_IP-IP_OPTIONS-0-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"get\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_OPTIONS -DOPTVAL=0 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"get\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_OPTIONS -DOPTVAL=0 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet) ! [ -f sockopt.core ] ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_OPTIONS-1-1-inet ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_OPTIONS-1-1-inet rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_OPTIONS -DOPTVAL=1 -DERRNO=1' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_OPTIONS -DOPTVAL=1 -DERRNO=1 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && sh -c 'ktrace ./sockopt ; [ $? = 134 ]' sockopt: pledge(stdio inet) Abort trap (core dumped) [ -f sockopt.core ] kdump | fgrep -q 'PLDG setsockopt, "inet", errno 1 ' ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-get-IPPROTO_IP-IP_TOS-0-0-0 ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-get-IPPROTO_IP-IP_TOS-0-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"get\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_TOS -DOPTVAL=0 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"get\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_TOS -DOPTVAL=0 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet) ! [ -f sockopt.core ] ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_TOS-1-0-0 ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_TOS-1-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_TOS -DOPTVAL=1 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_TOS -DOPTVAL=1 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet) ! [ -f sockopt.core ] ==== run-0-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_MULTICAST_IF-1-49-0 ==== run-0-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_MULTICAST_IF-1-49-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"0\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_MULTICAST_IF -DOPTVAL=1 -DERRNO=49' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"0\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_MULTICAST_IF -DOPTVAL=1 -DERRNO=49 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt ! [ -f sockopt.core ] ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_MULTICAST_IF-1-1-inet ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_MULTICAST_IF-1-1-inet rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_MULTICAST_IF -DOPTVAL=1 -DERRNO=1' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_MULTICAST_IF -DOPTVAL=1 -DERRNO=1 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && sh -c 'ktrace ./sockopt ; [ $? = 134 ]' sockopt: pledge(stdio inet) Abort trap (core dumped) [ -f sockopt.core ] kdump | fgrep -q 'PLDG setsockopt, "inet", errno 1 ' ==== run-inet+mcast-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_MULTICAST_IF-1-49-0 ==== run-inet+mcast-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_MULTICAST_IF-1-49-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet+mcast\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_MULTICAST_IF -DOPTVAL=1 -DERRNO=49' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet+mcast\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_MULTICAST_IF -DOPTVAL=1 -DERRNO=49 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet mcast) ! [ -f sockopt.core ] ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_MULTICAST_LOOP-1-1-inet ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_MULTICAST_LOOP-1-1-inet rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_MULTICAST_LOOP -DOPTVAL=1 -DERRNO=1' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_MULTICAST_LOOP -DOPTVAL=1 -DERRNO=1 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && sh -c 'ktrace ./sockopt ; [ $? = 134 ]' sockopt: pledge(stdio inet) Abort trap (core dumped) [ -f sockopt.core ] kdump | fgrep -q 'PLDG setsockopt, "inet", errno 1 ' ==== run-inet+mcast-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_MULTICAST_LOOP-1-22-0 ==== run-inet+mcast-AF_INET-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IP-IP_MULTICAST_LOOP-1-22-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet+mcast\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_MULTICAST_LOOP -DOPTVAL=1 -DERRNO=22' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet+mcast\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IP -DOPTNAME=IP_MULTICAST_LOOP -DOPTVAL=1 -DERRNO=22 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet mcast) ! [ -f sockopt.core ] ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-get-IPPROTO_ICMP-0-0-1-inet ==== run-inet-AF_INET-SOCK_DGRAM-IPPROTO_UDP-get-IPPROTO_ICMP-0-0-1-inet rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"get\" -DLEVEL=IPPROTO_ICMP -DOPTNAME=0 -DOPTVAL=0 -DERRNO=1' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"get\" -DLEVEL=IPPROTO_ICMP -DOPTNAME=0 -DOPTVAL=0 -DERRNO=1 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && sh -c 'ktrace ./sockopt ; [ $? = 134 ]' sockopt: pledge(stdio inet) Abort trap (core dumped) [ -f sockopt.core ] kdump | fgrep -q 'PLDG getsockopt, "inet", errno 1 ' ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_ICMPV6-0-0-1-inet ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_ICMPV6-0-0-1-inet rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_ICMPV6 -DOPTNAME=0 -DOPTVAL=0 -DERRNO=1' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_ICMPV6 -DOPTNAME=0 -DOPTVAL=0 -DERRNO=1 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && sh -c 'ktrace ./sockopt ; [ $? = 134 ]' sockopt: pledge(stdio inet) Abort trap (core dumped) [ -f sockopt.core ] kdump | fgrep -q 'PLDG setsockopt, "inet", errno 1 ' ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-get-IPPROTO_IPV6-IPV6_TCLASS-0-0-0 ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-get-IPPROTO_IPV6-IPV6_TCLASS-0-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"get\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_TCLASS -DOPTVAL=0 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"get\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_TCLASS -DOPTVAL=0 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet) ! [ -f sockopt.core ] ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-get-IPPROTO_IPV6-IPV6_V6ONLY-1-0-0 ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-get-IPPROTO_IPV6-IPV6_V6ONLY-1-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"get\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_V6ONLY -DOPTVAL=1 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"get\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_V6ONLY -DOPTVAL=1 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet) ! [ -f sockopt.core ] ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IPV6-IPV6_V6ONLY-0-EINVAL-0 ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IPV6-IPV6_V6ONLY-0-EINVAL-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_V6ONLY -DOPTVAL=0 -DERRNO=EINVAL' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_V6ONLY -DOPTVAL=0 -DERRNO=EINVAL -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet) ! [ -f sockopt.core ] ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IPV6-IPV6_MULTICAST_LOOP-1-1-inet ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IPV6-IPV6_MULTICAST_LOOP-1-1-inet rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_MULTICAST_LOOP -DOPTVAL=1 -DERRNO=1' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_MULTICAST_LOOP -DOPTVAL=1 -DERRNO=1 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && sh -c 'ktrace ./sockopt ; [ $? = 134 ]' sockopt: pledge(stdio inet) Abort trap (core dumped) [ -f sockopt.core ] kdump | fgrep -q 'PLDG setsockopt, "inet", errno 1 ' ==== run-inet+mcast-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IPV6-IPV6_MULTICAST_LOOP-1-0-0 ==== run-inet+mcast-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IPV6-IPV6_MULTICAST_LOOP-1-0-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet+mcast\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_MULTICAST_LOOP -DOPTVAL=1 -DERRNO=0' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet+mcast\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_MULTICAST_LOOP -DOPTVAL=1 -DERRNO=0 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet mcast) ! [ -f sockopt.core ] ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IPV6-IPV6_JOIN_GROUP-0-1-inet ==== run-inet-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IPV6-IPV6_JOIN_GROUP-0-1-inet rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_JOIN_GROUP -DOPTVAL=0 -DERRNO=1' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_JOIN_GROUP -DOPTVAL=0 -DERRNO=1 -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && sh -c 'ktrace ./sockopt ; [ $? = 134 ]' sockopt: pledge(stdio inet) Abort trap (core dumped) [ -f sockopt.core ] kdump | fgrep -q 'PLDG setsockopt, "inet", errno 1 ' ==== run-inet+mcast-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IPV6-IPV6_JOIN_GROUP-0-EINVAL-0 ==== run-inet+mcast-AF_INET6-SOCK_DGRAM-IPPROTO_UDP-set-IPPROTO_IPV6-IPV6_JOIN_GROUP-0-EINVAL-0 rm -f sockopt sockopt.core cd /home/src/regress/sys/kern/pledge/sockopt && COPTS='-DPROMISES=\"inet+mcast\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_JOIN_GROUP -DOPTVAL=0 -DERRNO=EINVAL' make sockopt cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -DPROMISES=\"inet+mcast\" -DDOMAIN=AF_INET6 -DTYPE=SOCK_DGRAM -DPROTOCOL=IPPROTO_UDP -DCALL=\"set\" -DLEVEL=IPPROTO_IPV6 -DOPTNAME=IPV6_JOIN_GROUP -DOPTVAL=0 -DERRNO=EINVAL -MD -MP -o sockopt /home/src/regress/sys/kern/pledge/sockopt/sockopt.c ulimit -c unlimited && ktrace ./sockopt sockopt: pledge(stdio inet mcast) ! [ -f sockopt.core ] ===> execpromise ==== run-normal ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sys/kern/pledge/execpromise/execpromise.c cc -o execpromise execpromise.o ./execpromise "stdio rpath inet" "stdio inet" execpromise: parent execpromise: execpromise: "stdio rpath inet", child pledge: "stdio inet" execpromise: child execpromise: plege("stdio inet","") execpromise: trying to open socket execpromise: opened socket ==== run-no-child-pledge ==== ./execpromise "stdio rpath inet" execpromise: parent execpromise: execpromise: "stdio rpath inet" execpromise: child execpromise: trying to open socket execpromise: opened socket ==== run-abort-child ==== if ./execpromise "stdio rpath"; then false; else [[ $? == 134 ]]; fi execpromise: parent execpromise: execpromise: "stdio rpath" execpromise: child execpromise: trying to open socket Abort trap (core dumped) ==== run-ENOSYS-child ==== if ./execpromise "stdio rpath error"; then false; else [[ $? == 23 ]]; fi execpromise: parent execpromise: execpromise: "stdio rpath error" execpromise: child execpromise: trying to open socket execpromise: open: Function not implemented ==== run-upgrade-fail ==== if ./execpromise "stdio rpath inet" "stdio inet wpath"; then false; else [[ $? == 24 ]]; fi execpromise: parent execpromise: execpromise: "stdio rpath inet", child pledge: "stdio inet wpath" execpromise: child execpromise: plege("stdio inet wpath","") execpromise: child pledge: Operation not permitted ==== run-upgrade-ignore ==== ./execpromise "stdio rpath inet error" "stdio rpath wpath inet" execpromise: parent execpromise: execpromise: "stdio rpath inet error", child pledge: "stdio rpath wpath inet" execpromise: child execpromise: plege("stdio rpath wpath inet","") execpromise: trying to open socket execpromise: opened socket ===> filedescriptor rm -f -- *.fstat ==== run-regress-dup ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/pledge/filedescriptor/main.c cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/pledge/filedescriptor/dup.c cc -o dup main.o dup.o ./dup >dup.fstat.tmp mv dup.fstat.tmp dup.fstat # file descriptor 3 has been opened before pledge grep ' 3 /.* r ' dup.fstat build dup 24918 3 / 78997 crw-rw-rw- r null # file descriptor 4 has been opened after pledge grep ' 4 /.* rp ' dup.fstat build dup 24918 4 / 78997 crw-rw-rw- rp null # file descriptor 5 has been dup(2)ed from pre-pledge grep ' 5 /.* r ' dup.fstat build dup 24918 5 / 78997 crw-rw-rw- r null # file descriptor 6 has been dup(2)ed from post-pledge grep ' 6 /.* rp ' dup.fstat build dup 24918 6 / 78997 crw-rw-rw- rp null ==== run-regress-dup2 ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/pledge/filedescriptor/dup2.c cc -o dup2 main.o dup2.o ./dup2 >dup2.fstat.tmp mv dup2.fstat.tmp dup2.fstat # file descriptor 3 has been opened before pledge grep ' 3 /.* r ' dup2.fstat build dup2 67697 3 / 78997 crw-rw-rw- r null # file descriptor 4 has been opened after pledge grep ' 4 /.* rp ' dup2.fstat build dup2 67697 4 / 78997 crw-rw-rw- rp null # file descriptor 5 has been dup2(2)ed from pre-pledge grep ' 5 /.* r ' dup2.fstat build dup2 67697 5 / 78997 crw-rw-rw- r null # file descriptor 6 has been dup2(2)ed from post-pledge grep ' 6 /.* rp ' dup2.fstat build dup2 67697 6 / 78997 crw-rw-rw- rp null # dup2(2) closes pre-pledge and overwrites with post-pledge grep ' 7 /.* rp ' dup2.fstat build dup2 67697 7 / 78997 crw-rw-rw- rp null # dup2(2) closes post-pledge and overwrites with pre-pledge grep ' 8 /.* r ' dup2.fstat build dup2 67697 8 / 78997 crw-rw-rw- r null # dup2(2) pre-pledge onto itself grep ' 9 /.* r ' dup2.fstat build dup2 67697 9 / 78997 crw-rw-rw- r null # dup2(2) post-pledge onto itself grep ' 10 /.* rp ' dup2.fstat build dup2 67697 10 / 78997 crw-rw-rw- rp null ==== run-regress-dup3 ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/pledge/filedescriptor/dup3.c cc -o dup3 main.o dup3.o ./dup3 >dup3.fstat.tmp mv dup3.fstat.tmp dup3.fstat # file descriptor 3 has been opened before pledge grep ' 3 /.* r ' dup3.fstat build dup3 90687 3 / 78997 crw-rw-rw- r null # file descriptor 4 has been opened after pledge grep ' 4 /.* rp ' dup3.fstat build dup3 90687 4 / 78997 crw-rw-rw- rp null # file descriptor 5 has been dup3(2)ed from pre-pledge grep ' 5 /.* re ' dup3.fstat build dup3 90687 5 / 78997 crw-rw-rw- re null # file descriptor 6 has been dup3(2)ed from post-pledge grep ' 6 /.* rep ' dup3.fstat build dup3 90687 6 / 78997 crw-rw-rw- rep null # dup3(2) closes pre-pledge and overwrites with post-pledge grep ' 7 /.* rep ' dup3.fstat build dup3 90687 7 / 78997 crw-rw-rw- rep null # dup3(2) closes post-pledge and overwrites with pre-pledge grep ' 8 /.* re ' dup3.fstat build dup3 90687 8 / 78997 crw-rw-rw- re null # dup3(2) pre-pledge onto itself fails grep ' 9 /.* r ' dup3.fstat build dup3 90687 9 / 78997 crw-rw-rw- r null # dup3(2) post-pledge onto itself fails grep ' 10 /.* rp ' dup3.fstat build dup3 90687 10 / 78997 crw-rw-rw- rp null ==== run-regress-dev ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/pledge/filedescriptor/dev.c cc -o dev main.o dev.o ./dev >dev.fstat.tmp mv dev.fstat.tmp dev.fstat # file descriptor 3 has been opened before pledge grep ' 3 /.* r ' dev.fstat build dev 32698 3 / 78997 crw-rw-rw- r null # file descriptor 4 has been opened after pledge grep ' 4 /.* rp ' dev.fstat build dev 32698 4 / 78997 crw-rw-rw- rp null # file descriptor 5 has been open(2)ed from pre-pledge /dev/fd/3 grep ' 5 /.* r ' dev.fstat build dev 32698 5 / 78997 crw-rw-rw- r null # file descriptor 6 has been open(2)ed from post-pledge /dev/fd/4 grep ' 6 /.* rp ' dev.fstat build dev 32698 6 / 78997 crw-rw-rw- rp null ==== run-regress-pass ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/pledge/filedescriptor/pass.c cc -o pass main.o pass.o ./pass >pass.fstat.tmp mv pass.fstat.tmp pass.fstat # file descriptor 3 has been opened before pledge grep ' 3 /.* r ' pass.fstat build pass 38761 3 / 78997 crw-rw-rw- r null # file descriptor 4 has been opened after pledge grep ' 4 /.* rp ' pass.fstat build pass 38761 4 / 78997 crw-rw-rw- rp null # file descriptor 7 has been passed from pre-pledge grep ' 7 /.* r ' pass.fstat build pass 38761 7 / 78997 crw-rw-rw- r null # file descriptor 8 has been passed from post-pledge grep ' 8 /.* rp ' pass.fstat build pass 38761 8 / 78997 crw-rw-rw- rp null