==== run-unlink ====
cc -O2 -pipe  -g  -MD -MP  -c /home/src/regress/sys/kern/unveil-unmount/unveil-unlink.c
cc   -o unveil-unlink unveil-unlink.o 
cc -O2 -pipe  -g  -MD -MP  -c /home/src/regress/sys/kern/unveil-unmount/unveil-chroot.c
cc   -o unveil-chroot unveil-chroot.o 
cc -O2 -pipe  -g  -MD -MP  -c /home/src/regress/sys/kern/unveil-unmount/unveil-perm.c
cc   -o unveil-perm unveil-perm.o 
cc -O2 -pipe  -g  -MD -MP  -c /home/src/regress/sys/kern/unveil-unmount/unveil-chdir.c
cc   -o unveil-chdir unveil-chdir.o 
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
/bin/sh: vnd: No such file or directory
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
/bin/sh: vnd: No such file or directory
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.058 secs (35994470 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n ./unveil-unlink /mnt/regress-unveil/foo bar
doas -n umount /mnt/regress-unveil

==== run-chroot ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.035 secs (58291216 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n ./unveil-chroot /mnt/regress-unveil /
doas -n umount /mnt/regress-unveil

==== run-chroot-dir ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.059 secs (35131147 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n ./unveil-chroot /mnt/regress-unveil/foo /
doas -n umount /mnt/regress-unveil

==== run-chroot-unveil-dir ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.055 secs (37672443 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n ./unveil-chroot /mnt/regress-unveil /foo
doas -n umount /mnt/regress-unveil

==== run-chroot-dir-unveil-dir ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.053 secs (39071097 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo/bar
doas -n ./unveil-chroot /mnt/regress-unveil/foo /bar
doas -n umount /mnt/regress-unveil

==== run-chroot-rootslash ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.038 secs (54942866 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n ./unveil-chroot /mnt/regress-unveil //
doas -n umount /mnt/regress-unveil

==== run-chroot-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.056 secs (36986732 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n touch /mnt/regress-unveil/baz
doas -n ./unveil-chroot /mnt/regress-unveil / /baz
doas -n umount /mnt/regress-unveil

==== run-chroot-dir-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.055 secs (37512502 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n touch /mnt/regress-unveil/foo/baz
doas -n ./unveil-chroot /mnt/regress-unveil/foo / /baz
doas -n umount /mnt/regress-unveil

==== run-chroot-unveil-dir-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.037 secs (56032430 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n touch /mnt/regress-unveil/foo/baz
doas -n ./unveil-chroot /mnt/regress-unveil /foo /baz
doas -n umount /mnt/regress-unveil

==== run-chroot-dir-unveil-dir-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.037 secs (55877884 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo/bar
doas -n touch /mnt/regress-unveil/foo/bar/baz
doas -n ./unveil-chroot /mnt/regress-unveil/foo /bar /baz
doas -n umount /mnt/regress-unveil

==== run-chroot-rootslash-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.054 secs (38383446 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n touch /mnt/regress-unveil/baz
doas -n ./unveil-chroot /mnt/regress-unveil // /baz
doas -n umount /mnt/regress-unveil

==== run-chroot-open-rootslash ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.057 secs (36322430 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n touch /mnt/regress-unveil/baz
doas -n ./unveil-chroot /mnt/regress-unveil / //baz
doas -n umount /mnt/regress-unveil

==== run-chroot-unveil-rootdot-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.047 secs (43857028 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n touch /mnt/regress-unveil/baz
doas -n ./unveil-chroot /mnt/regress-unveil /. /baz
doas -n umount /mnt/regress-unveil

==== run-chroot-unveil-rootdotdot-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.036 secs (57832896 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n touch /mnt/regress-unveil/baz
doas -n ./unveil-chroot /mnt/regress-unveil /.. /baz
doas -n umount /mnt/regress-unveil

==== run-perm ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.041 secs (50603705 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n ./unveil-perm "" /mnt/regress-unveil
doas -n umount /mnt/regress-unveil

==== run-perm-dir ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.056 secs (36988533 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n ./unveil-perm "" /mnt/regress-unveil/foo
doas -n umount /mnt/regress-unveil

==== run-perm-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.047 secs (43776143 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n touch /mnt/regress-unveil/baz
doas -n ./unveil-perm "" /mnt/regress-unveil baz
doas -n umount /mnt/regress-unveil

==== run-perm-dir-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.036 secs (57681846 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n touch /mnt/regress-unveil/foo/baz
doas -n ./unveil-perm "" /mnt/regress-unveil/foo baz
doas -n umount /mnt/regress-unveil

==== run-perm-create-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.055 secs (37804189 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n touch /mnt/regress-unveil/baz
doas -n ./unveil-perm "c" /mnt/regress-unveil baz
doas -n umount /mnt/regress-unveil

==== run-perm-dir-create-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.056 secs (37358626 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n touch /mnt/regress-unveil/foo/baz
doas -n ./unveil-perm "c" /mnt/regress-unveil/foo baz
doas -n umount /mnt/regress-unveil

==== run-perm-write-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.053 secs (39538381 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n touch /mnt/regress-unveil/baz
doas -n ./unveil-perm "w" /mnt/regress-unveil baz
doas -n umount /mnt/regress-unveil

==== run-perm-dir-write-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.037 secs (55744015 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n touch /mnt/regress-unveil/foo/baz
doas -n ./unveil-perm "w" /mnt/regress-unveil/foo baz
doas -n umount /mnt/regress-unveil

==== run-chdir ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.038 secs (54668162 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n ./unveil-chdir /mnt/regress-unveil .
doas -n umount /mnt/regress-unveil

==== run-chdir-dir ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.037 secs (55794784 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n ./unveil-chdir /mnt/regress-unveil/foo .
doas -n umount /mnt/regress-unveil

==== run-chdir-unveil-dir ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.074 secs (28173796 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n ./unveil-chdir /mnt/regress-unveil foo
doas -n umount /mnt/regress-unveil

==== run-chdir-unveil-backdir ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.068 secs (30585548 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n ./unveil-chdir /mnt/regress-unveil foo/..
doas -n umount /mnt/regress-unveil

==== run-chdir-unveil-dotdot ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.057 secs (36531931 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n ./unveil-chdir /mnt/regress-unveil/foo ..
doas -n umount /mnt/regress-unveil

==== run-chdir-dir-unveil-dir ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.041 secs (50539276 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo/bar
doas -n ./unveil-chdir /mnt/regress-unveil/foo bar
doas -n umount /mnt/regress-unveil

==== run-chdir-dir-unveil-backdir ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.065 secs (31897617 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo/bar
doas -n ./unveil-chdir /mnt/regress-unveil/foo bar/..
doas -n umount /mnt/regress-unveil

==== run-chdir-dir-unveil-dotdot ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.035 secs (58510896 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo/bar
doas -n ./unveil-chdir /mnt/regress-unveil/foo/bar ..
doas -n umount /mnt/regress-unveil

==== run-chdir-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.038 secs (54317478 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil
doas -n touch /mnt/regress-unveil/baz
doas -n ./unveil-chdir /mnt/regress-unveil . baz
doas -n umount /mnt/regress-unveil

==== run-chdir-dir-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.111 secs (18817269 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n touch /mnt/regress-unveil/foo/baz
doas -n ./unveil-chdir /mnt/regress-unveil/foo . baz
doas -n umount /mnt/regress-unveil

==== run-chdir-unveil-dir-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.045 secs (45820138 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n touch /mnt/regress-unveil/foo/baz
doas -n ./unveil-chdir /mnt/regress-unveil foo baz
doas -n umount /mnt/regress-unveil

==== run-chdir-unveil-backdir-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.054 secs (38601323 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n touch /mnt/regress-unveil/baz
doas -n ./unveil-chdir /mnt/regress-unveil foo/.. baz
doas -n umount /mnt/regress-unveil

==== run-chdir-unveil-dotdot-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.055 secs (37746751 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo
doas -n touch /mnt/regress-unveil/baz
doas -n ./unveil-chdir /mnt/regress-unveil/foo .. baz
doas -n umount /mnt/regress-unveil

==== run-chdir-dir-unveil-dir-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.072 secs (29062365 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo/bar
doas -n touch /mnt/regress-unveil/foo/bar/baz
doas -n ./unveil-chdir /mnt/regress-unveil/foo bar baz
doas -n umount /mnt/regress-unveil

==== run-chdir-dir-unveil-backdir-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.050 secs (41348021 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo/bar
doas -n touch /mnt/regress-unveil/foo/baz
doas -n ./unveil-chdir /mnt/regress-unveil/foo bar/.. baz
doas -n umount /mnt/regress-unveil

==== run-chdir-dir-unveil-dotdot-open ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup
doas -n dd if=/dev/zero of=diskimage bs=512 count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.061 secs (34145009 bytes/sec)
doas -n vnconfig diskimage >vnd
doas -n newfs $(<vnd)c
/dev/rvnd0c: 2.0MB in 4096 sectors of 512 bytes
4 cylinder groups of 0.50MB, 32 blocks, 64 inodes each
super-block backups (for fsck -b #) at:
 160, 1184, 2208, 3232,
doas -n mkdir -p /mnt/regress-unveil
doas -n mount /dev/$(<vnd)c /mnt/regress-unveil
doas -n mkdir -p /mnt/regress-unveil/foo/bar
doas -n touch /mnt/regress-unveil/foo/baz
doas -n ./unveil-chdir /mnt/regress-unveil/foo/bar .. baz
doas -n umount /mnt/regress-unveil

==== unconfig ====
doas -n umount -f /dev/$(<vnd)c 2>/dev/null || true
doas -n rmdir /mnt/regress-unveil 2>/dev/null || true
doas -n vnconfig -u $(<vnd) 2>/dev/null || true
doas -n rm -f stamp-setup