freebsd-nq/usr.bin/procstat
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
..
Makefile Bring DPADD in sync with LDADD. 2012-05-19 05:07:03 +00:00
procstat_args.c Add new options, -e and -x, to display process environment variables 2011-11-22 20:59:52 +00:00
procstat_auxv.c Handle AT_TIMEKEEP in procstat(1) -x [1]. Remove the AT_COUNT switch 2012-09-16 05:52:54 +00:00
procstat_basic.c - Commit work from libprocstat project. These patches add support for runtime 2011-05-12 10:11:39 +00:00
procstat_bin.c When displaying binary information show also osreldate. 2012-03-23 20:09:21 +00:00
procstat_cred.c When displaying security credential information show also process umask. 2012-02-26 14:27:34 +00:00
procstat_files.c - Implement two new system calls: 2013-03-02 21:11:30 +00:00
procstat_kstack.c Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN. 2011-07-18 20:06:15 +00:00
procstat_rlimit.c Fix style. 2012-07-03 19:11:38 +00:00
procstat_sigs.c - Commit work from libprocstat project. These patches add support for runtime 2011-05-12 10:11:39 +00:00
procstat_threads.c Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN. 2011-07-18 20:06:15 +00:00
procstat_vm.c Align the header with output. 2012-07-24 19:40:12 +00:00
procstat.1 add SG state type 2012-10-02 00:30:20 +00:00
procstat.c procstat: only one mode flag can be specified, but required check for 'i' 2013-01-12 22:20:37 +00:00
procstat.h usr.bin/procstat 2011-11-24 20:54:06 +00:00