summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2000-04-21 17:06:13 +0000
committermillert <millert@openbsd.org>2000-04-21 17:06:13 +0000
commit873dbcf8aa81282a0064f9bde6c68131131a7aa7 (patch)
treef3ea8f06e3e5bd7ec91d039ed8f7972bd848daec /lib
parentsee if there is any meaning under curproc before using &proc0 in vfs_syncwait(); from art@ (diff)
downloadwireguard-openbsd-873dbcf8aa81282a0064f9bde6c68131131a7aa7.tar.xz
wireguard-openbsd-873dbcf8aa81282a0064f9bde6c68131131a7aa7.zip
Remove the races so that this is safe to run anytime. We open
/var/tmp/vi.recover to get an fd and user O_NOFOLLOW to following a symlink. Once we have a file handle we can use it to safely chdir to the right place and form then on do operations relative to ".". Also restrict to root.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions