Pawel Jakub Dawidek 7493f24ee6 - Implement two new system calls:
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
2013-03-02 21:11:30 +00:00
..
2012-11-15 15:06:00 +00:00
2011-11-06 08:13:58 +00:00
2011-11-06 08:14:16 +00:00
2011-11-06 08:14:22 +00:00
2012-07-28 06:38:44 +00:00
2013-02-14 19:46:41 +00:00
2013-02-28 01:22:14 +00:00
2012-11-04 09:27:01 +00:00
2012-04-19 03:20:13 +00:00
2012-05-19 05:07:03 +00:00
2011-11-06 09:09:45 +00:00
2012-05-10 02:07:00 +00:00
2011-12-30 11:02:40 +00:00
2012-03-25 09:19:25 +00:00
2013-03-02 00:53:12 +00:00
2013-02-19 13:32:26 +00:00
2009-06-23 23:17:04 +00:00
2012-09-14 17:50:42 +00:00
2011-06-18 13:56:33 +00:00
2012-09-14 21:28:56 +00:00
2012-05-10 02:07:00 +00:00
2012-11-17 23:52:38 +00:00
2012-10-19 14:29:03 +00:00
2011-10-16 08:04:43 +00:00
2013-01-01 18:25:14 +00:00
2012-06-21 21:47:08 +00:00
2012-05-22 16:33:10 +00:00
2011-05-13 09:55:48 +00:00
2010-10-19 00:01:53 +00:00
2012-09-14 17:50:42 +00:00
2012-05-10 02:07:00 +00:00
2013-02-19 13:17:16 +00:00
2010-06-02 10:20:23 +00:00
2011-10-14 07:28:39 +00:00
2012-05-26 17:10:16 +00:00
2012-12-04 09:02:49 +00:00
2011-11-06 08:16:35 +00:00
2013-01-14 11:06:50 +00:00
2011-10-16 09:09:33 +00:00
2013-02-25 17:32:10 +00:00
2013-01-08 22:14:45 +00:00
2012-09-14 17:50:42 +00:00
2012-07-28 06:38:44 +00:00
2012-03-26 15:18:14 +00:00
2012-10-07 20:01:41 +00:00
2012-09-14 17:50:42 +00:00
2012-03-26 15:18:14 +00:00
2011-11-06 08:18:42 +00:00
2011-11-06 08:19:00 +00:00
2012-10-07 20:01:41 +00:00
2012-05-10 02:07:00 +00:00
2011-10-16 08:04:43 +00:00
2012-09-17 23:04:15 +00:00
2010-06-19 16:24:55 +00:00
2013-02-09 18:14:26 +00:00