[krbdev.mit.edu #9276] git commit

Greg Hudson via RT rt at krbdev.mit.edu
Tue Nov 3 19:18:17 EST 2026


<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9276 >


Avoid the macOS API ccache in forked children

The macOS API ccache module communicates with the credential cache
service through the CCAPI framework and XPC.  In a child process
forked from a parent that already used them, those calls can crash the
process.  Record the pid of the first API ccache use; in a child
forked after that, report the API collection as empty, treat caches as
not found (KRB5_FCC_NOFILE), and leave CCAPI objects inherited from
the parent unreleased, so the child never calls the CCAPI framework or
XPC.

[ghudson at mit.edu: edited commit message and comment]

(cherry picked from commit e7a22fc32da7e5aafb2aba005b621081a898109c)

https://github.com/krb5/krb5/commit/1230bfd8e7a6439b37efe3dab4554932b489bf2a
Author: Douglas Eichelberger <d at eic.email>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: 1230bfd8e7a6439b37efe3dab4554932b489bf2a
Branch: krb5-1.22
 src/lib/krb5/ccache/cc_api_macos.c | 62 ++++++++++++++++++++++++++++++++------
 1 file changed, 52 insertions(+), 10 deletions(-)



More information about the krb5-bugs mailing list