summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/bindat.2
Commit message (Collapse)AuthorAgeFilesLines
* use .Mt to mark up email addresses consistently (part4)bapt2014-06-231-1/+1
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* - Implement two new system calls:pjd2013-03-021-0/+109
int bindat(int fd, int s, const struct sockaddr *addr, socklen_t addrlen); int connectat(int fd, int s, const struct sockaddr *name, socklen_t namelen); which allow to bind and connect respectively to a UNIX domain socket with a path relative to the directory associated with the given file descriptor 'fd'. - Add manual pages for the new syscalls. - Make the new syscalls available for processes in capability mode sandbox. - Add capability rights CAP_BINDAT and CAP_CONNECTAT that has to be present on the directory descriptor for the syscalls to work. - Update audit(4) to support those two new syscalls and to handle path in sockaddr_un structure relative to the given directory descriptor. - Update procstat(1) to recognize the new capability rights. - Document the new capability rights in cap_rights_limit(2). Sponsored by: The FreeBSD Foundation Discussed with: rwatson, jilles, kib, des
OpenPOWER on IntegriCloud