[Bug 252673] Read on a SEQPACKET AF_UNIX socket returns the wrong error when disallowed by Capsicum
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jan 14 16:04:16 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252673
--- Comment #2 from David Chisnall <theraven at FreeBSD.org> ---
Curious. That test also passes for me. I'll see if I can produce a reduced
test case. In the program where I encountered this, the fd is actually `dup`'d
and then passed to a child process (`vfork` + `execve`) and is actually calling
`__sys_read` not `read`, because the first `read` is before enough libc is set
up for `read` to not SEGV. I've added a `dup` and a `fork` to your test and it
still does the right thing. Is there anything in the file descriptor
inheritance logic across `execve` that may cause a change here?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list