[Bug 221820] [exp-run] Identify 'struct socket' and 'struct sockbuf' consumers in ports

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 2 23:30:59 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221820

--- Comment #12 from commit-hook at freebsd.org ---
A commit references this bug:

Author: glebius
Date: Mon Oct  2 23:29:57 UTC 2017
New revision: 324227
URL: https://svnweb.freebsd.org/changeset/base/324227

Log:
  Hide struct socket and struct unpcb from the userland.

  Violators may define _WANT_SOCKET and _WANT_UNPCB respectively and
  are not guaranteed for stability of the structures.  The violators
  list is the the usual one: libprocstat(3) and netstat(1) internally
  and lsof in ports.

  In struct xunpcb remove the inclusion of kernel structure and add
  a bunch of spare fields.  The xsocket already has socket not included,
  but add there spares as well.  Embed xsockbuf into xsocket.

  Sort declarations in sys/socketvar.h to separate kernel only from
  userland available ones.

  PR:           221820 (exp-run)

Changes:
  head/lib/libprocstat/libprocstat.c
  head/sys/kern/uipc_usrreq.c
  head/sys/netinet6/send.c
  head/sys/sys/param.h
  head/sys/sys/sockbuf.h
  head/sys/sys/socketvar.h
  head/sys/sys/sockstate.h
  head/sys/sys/unpcb.h
  head/usr.bin/bluetooth/btsockstat/btsockstat.c
  head/usr.bin/netstat/inet.c
  head/usr.bin/netstat/netgraph.c
  head/usr.bin/netstat/unix.c
  head/usr.bin/sockstat/sockstat.c
  head/usr.bin/systat/netstat.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list