1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/lib
Jacques Vidrine 7c2274dc95 The pam_krb5 module stored a reference to a krb5_ccache structure as
PAM module state (created in pam_sm_authenticate and referenced later
in pam_sm_setcred and pam_sm_acct_mgmt).  However, the krb5_ccache
structure shares some data members with the krb5_context structure
that was used in its creation.  Since a new krb5_context is created
and destroyed at each PAM entry point, this inevitably caused the
krb5_ccache structure to reference free'd memory.

Now instead of storing a pointer to the krb5_ccache structure,
we store the name of the cache (e.g. `MEMORY:0x123CACHE') in
pam_sm_authenticate, and resolve the name in the other entry points.

This bug was uncovered by phkmalloc's free'd memory scrubbing.

Approved by:	re (jhb)
2002-11-13 17:46:15 +00:00
..
compat Update compat3x libc and libc_r from RELENG_3. This fixes the buffer 2002-09-25 19:47:54 +00:00
csu Align the stack suitably for the version of gcc in FreeBSD-4 (provided 2002-09-29 13:42:27 +00:00
libalias Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libatm bzero() allocations. 2002-09-30 09:18:54 +00:00
libbind Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libbz2 Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libc ia64 ABI breaker: 2002-11-11 08:11:44 +00:00
libc_r Fix bogus return values from libc_r's writev() routine in situations where 2002-11-12 19:01:49 +00:00
libcalendar mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libcam Don't depend on <sys/types.h> pollution in <fcntl.h>. 2002-09-16 07:18:27 +00:00
libcom_err
libcompat - Remove the lsearch() and lfind() functions and their manpage from 2002-10-16 14:29:23 +00:00
libcrypt crypt(3) incorrectly documents md5 salt, fixed. 2002-04-09 22:32:59 +00:00
libdevinfo Expose the new kernel data structures to libdevinfo: 2002-09-20 02:16:33 +00:00
libdevstat Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libdisk Handle EFI partitions the same as regular FAT partitions. The only 2002-11-13 05:31:32 +00:00
libedit Write the strvis()'d string out to the history file in history_save(), 2002-10-14 10:42:38 +00:00
libexpat Minor tweaks to make this manpage readable. 2002-10-04 15:07:39 +00:00
libfetch Fix two typos. 2002-11-08 19:10:05 +00:00
libform Make this a little easier to build standalone. (same change as libpanel) 2002-05-21 07:08:30 +00:00
libftpio Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libio Add __FBSDID()s to libio 2001-09-30 21:41:46 +00:00
libipsec Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libipx Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:10:45 +00:00
libisc Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libkse Schedule an idle context to block until timeouts expire without blocking 2002-11-12 00:55:01 +00:00
libkvm Implement working on ELF corefiles. Use kvm_read() when reading 2002-10-21 04:21:12 +00:00
libmd Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
libmenu Make this a little easier to build standalone. (same change as libpanel) 2002-05-21 07:08:30 +00:00
libmilter Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
libmp MAN[1-9] -> MAN. 2002-05-13 12:11:54 +00:00
libncp Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libncurses Actually check if stdbool.h exists when BOOTSTRAPPING. 2002-11-13 13:47:48 +00:00
libnetgraph Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libopie Drop login.c and logwtmp.c from the library build. None of the apps 2002-10-04 00:24:31 +00:00
libpam The pam_krb5 module stored a reference to a krb5_ccache structure as 2002-11-13 17:46:15 +00:00
libpanel Initial update of bmake glue for ncurses-5.2-20020518 2002-05-21 05:41:07 +00:00
libpcap Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libpthread Schedule an idle context to block until timeouts expire without blocking 2002-11-12 00:55:01 +00:00
libradius Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
librpcsvc make rstat(3) return an 'enum clnt_stat' rather than an 'int' to match 2002-10-01 22:02:06 +00:00
libsbuf Enable WARNS?=2. 2002-01-06 08:47:19 +00:00
libsm Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libsmb Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libsmdb Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libsmutil Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libstand Add the libz derived files, added in the previous commit, to 2002-10-19 02:23:09 +00:00
libtacplus Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libtelnet Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libufs Use an error message closer to old dumpfs(8) in the case of truncated/no 2002-10-22 19:36:10 +00:00
libugidfw License and blurb update authorized by Network Associates. 2002-11-07 20:37:04 +00:00
libusbhid Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libutil Add LOGIN_SETMAC to the list of flags that can't be set without class 2002-11-12 22:30:01 +00:00
libvgl Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libwrap Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libxpg4 Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
liby Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libypclnt Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
libz Actually implement gzip's -c option. minigzip now also doubles 2002-10-03 19:30:22 +00:00
msun Re-apply the previously backed-out commit that fixes the problem where 2002-10-31 23:05:20 +00:00
ncurses Actually check if stdbool.h exists when BOOTSTRAPPING. 2002-11-13 13:47:48 +00:00
Makefile Connect libbsdxml (nee libexpat) to the build. 2002-10-04 13:40:39 +00:00
Makefile.inc Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00