[Bug 222632] connect(2) not available in capability mode
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Nov 12 15:42:35 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222632
--- Comment #18 from Jan Kokemüller <jan.kokemueller at gmail.com> ---
Created attachment 187942
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187942&action=edit
Disallow connectat/bindat AT_FDCWD in capabilities mode
Here is a patch that disables connectat/bindat in capabilities mode when called
with the AT_FDCWD parameter.
It also:
- adds documentation that connect and connectat(AT_FDCWD,...) are equivalent
and therefore connectat is not restricted to AF_UNIX sockets. Same for bindat.
- adds documentation that CAP_BIND and CAP_CONNECT are useless in cap mode
- adds some tests
Maybe there is still a use case for CAP_CONNECT/CAP_BIND: I think those rights
can be used to lock down a raw, privileged socket created by a helper process.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list