freebsd-skq/lib
Robert Watson b1fc0ec1a7 o Merge contents of struct pcred into struct ucred. Specifically, add the
real uid, saved uid, real gid, and saved gid to ucred, as well as the
  pcred->pc_uidinfo, which was associated with the real uid, only rename
  it to cr_ruidinfo so as not to conflict with cr_uidinfo, which
  corresponds to the effective uid.
o Remove p_cred from struct proc; add p_ucred to struct proc, replacing
  original macro that pointed.
  p->p_ucred to p->p_cred->pc_ucred.
o Universally update code so that it makes use of ucred instead of pcred,
  p->p_ucred instead of p->p_pcred, cr_ruidinfo instead of p_uidinfo,
  cr_{r,sv}{u,g}id instead of p_*, etc.
o Remove pcred0 and its initialization from init_main.c; initialize
  cr_ruidinfo there.
o Restruction many credential modification chunks to always crdup while
  we figure out locking and optimizations; generally speaking, this
  means moving to a structure like this:
        newcred = crdup(oldcred);
        ...
        p->p_ucred = newcred;
        crfree(oldcred);
  It's not race-free, but better than nothing.  There are also races
  in sys_process.c, all inter-process authorization, fork, exec, and
  exit.
o Remove sigio->sio_ruid since sigio->sio_ucred now contains the ruid;
  remove comments indicating that the old arrangement was a problem.
o Restructure exec1() a little to use newcred/oldcred arrangement, and
  use improved uid management primitives.
o Clean up exit1() so as to do less work in credential cleanup due to
  pcred removal.
o Clean up fork1() so as to do less work in credential cleanup and
  allocation.
o Clean up ktrcanset() to take into account changes, and move to using
  suser_xxx() instead of performing a direct uid==0 comparision.
o Improve commenting in various kern_prot.c credential modification
  calls to better document current behavior.  In a couple of places,
  current behavior is a little questionable and we need to check
  POSIX.1 to make sure it's "right".  More commenting work still
  remains to be done.
o Update credential management calls, such as crfree(), to take into
  account new ruidinfo reference.
o Modify or add the following uid and gid helper routines:
      change_euid()
      change_egid()
      change_ruid()
      change_rgid()
      change_svuid()
      change_svgid()
  In each case, the call now acts on a credential not a process, and as
  such no longer requires more complicated process locking/etc.  They
  now assume the caller will do any necessary allocation of an
  exclusive credential reference.  Each is commented to document its
  reference requirements.
o CANSIGIO() is simplified to require only credentials, not processes
  and pcreds.
o Remove lots of (p_pcred==NULL) checks.
o Add an XXX to authorization code in nfs_lock.c, since it's
  questionable, and needs to be considered carefully.
o Simplify posix4 authorization code to require only credentials, not
  processes and pcreds.  Note that this authorization, as well as
  CANSIGIO(), needs to be updated to use the p_cansignal() and
  p_cansched() centralized authorization routines, as they currently
  do not take into account some desirable restrictions that are handled
  by the centralized routines, as well as being inconsistent with other
  similar authorization instances.
o Update libkvm to take these changes into account.

Obtained from:	TrustedBSD Project
Reviewed by:	green, bde, jhb, freebsd-arch, freebsd-audit
2001-05-25 16:59:11 +00:00
..
compat Remove these libs that are the same .so version as the ones in 2001-05-19 05:54:11 +00:00
csu Add rcsid's. 2001-01-04 10:37:25 +00:00
libalias MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libatm
libbind
libc Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files. 2001-05-24 08:47:42 +00:00
libc_r Add a test for PR 24345. 2001-05-20 23:12:13 +00:00
libcalendar mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
libcam MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libcom_err MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libcompat MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libcrypt MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libdevinfo mdoc(7) police: fix markup. 2001-04-23 07:39:36 +00:00
libdevstat Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
libdisk + add u_long sector_size to struct disk (documented in libdisk.3) 2001-05-13 20:08:54 +00:00
libedit Back out history.3 link removing - conflict fixed in libreadline instead 2001-04-12 09:57:12 +00:00
libfetch Add some error codes that were added in RFC2616. 2001-05-23 18:52:02 +00:00
libform MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libftpio mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
libgnumalloc
libio Add `_PATH_DEVZERO'. 2000-12-09 09:35:55 +00:00
libipsec MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libipx Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
libisc MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libkse Add a test for PR 24345. 2001-05-20 23:12:13 +00:00
libkvm o Merge contents of struct pcred into struct ucred. Specifically, add the 2001-05-25 16:59:11 +00:00
libm MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libmd mdoc(7) police: use proper markup for function arguments. 2001-04-04 10:23:27 +00:00
libmenu Update for ncurses 5.2-20010512 import 2001-05-17 08:30:09 +00:00
libncp Compensate for header dethreading. 2001-05-01 09:24:15 +00:00
libncurses Use the correct FreeBSD definitions for wint_t and wchar_t. 2001-05-18 00:41:27 +00:00
libnetgraph MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libopie MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libpam Add the "auth_as_self" option to the pam_unix module (there is no 2001-05-24 18:35:52 +00:00
libpanel MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libpcap Fixed world breakage in previous commit (config.h was inaccessible 2001-04-03 10:08:51 +00:00
libpthread Add a test for PR 24345. 2001-05-20 23:12:13 +00:00
libradius MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libresolv
librpcsvc Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and 2001-03-19 12:50:13 +00:00
libsbuf Removed -I${.CURDIR}/../../sys from CFLAGS. 2001-05-20 12:45:53 +00:00
libskey mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
libsmdb Add a MAINTAINER= line so people know who to blame 2000-10-26 23:02:36 +00:00
libsmutil Add a MAINTAINER= line so people know who to blame 2000-10-26 23:02:36 +00:00
libss Add `_PATH_DEVZERO'. 2000-12-09 09:35:55 +00:00
libstand Replace functional bugs of ctypish functions in libstand with style 2001-05-14 16:49:20 +00:00
libtacplus MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libtelnet Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness. 2001-03-28 12:08:22 +00:00
libusb MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libusbhid MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libutil Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
libvgl Use CONS_GETINFO ioctl to get geometry of the current text mode instead of 2001-05-19 17:05:52 +00:00
libwrap MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libxpg4 Bump major to preserve 3.x binaries compatibility 2000-06-13 00:41:38 +00:00
liby
libz MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
msun mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
ncurses Use the correct FreeBSD definitions for wint_t and wchar_t. 2001-05-18 00:41:27 +00:00
Makefile Turn on libdevinfo 2001-04-21 00:11:00 +00:00
Makefile.inc