kernel - fix O_CLOEXEC race in open() and fhopen()
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 19 May 2015 18:46:07 +0000 (11:46 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 19 May 2015 18:46:07 +0000 (11:46 -0700)
commit330497ceac4c88b07a7c0bed54b34042c8bafe8d
treedc32ef0296978f56200d05e26b95580487f8c046
parentca1161c61688e19d06150eef59b47e2f8188e7d5
kernel - fix O_CLOEXEC race in open() and fhopen()

* Fix an O_CLOEXEC race where a fork/exec can race an
  open(...O_CLOEXEC) and improperly inherit the descriptor.
sys/kern/vfs_syscalls.c