We test both the standard case where we want to reject any SCM_RIGHTS
message, as well as the case where the kernel discards the unwanted file
upon receipt.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 73653 Build 70536: arc lint + arc unit
Event Timeline
Comment Actions
You might add a test case which checks whether the option is inherited by accept().
| tests/sys/kern/unix_passfd_test.c | ||
|---|---|---|
| 601 | ||
Comment Actions
Add a test that SO_PASSRIGHTS isn't inherited from a listening socket. The new
test does stop just short of actually sending an fd over the socket, assuming
we won't mess up and return a false-positive in getsockopt(2)
| tests/sys/kern/unix_passfd_test.c | ||
|---|---|---|
| 713 | I'm not sure that you actually need a separate process? AFAIR connect() does not block waiting for the server to accept(). | |
Comment Actions
Simplify noinherit case- I did the dumb, unix(4) sockets won't inherently block
on connect(2).