No description
Find a file
Lexi Winter 9503ed0dfd pam_ksu: Fix crash when no ticket is present
When building with MIT Kerberos, pam_ksu crashes if the user doesn't
have a ticket because default_principal is never populated in
get_su_principal().

Change the compatibility function to use krb5_build_principal_alloc_va
instead, and make its interface compatible with the equivalent Heimdal
function.

Despite what the comment says, we do free the default principal later
in get_su_principal() so this shouldn't cause any leaks.

Reviewed by:		des, philip, cy, jhb
Differential Revision:	https://reviews.freebsd.org/D51829
2025-08-09 07:16:45 +01:00
.cirrus-ci
.github .github: Use make.py's --cross-toolchain option on macOS 2025-08-06 16:14:37 -04:00
bin freebsd-version.8: Add back freebsd-update paragraph 2025-08-06 12:32:39 -04:00
cddl zfs: merge openzfs/zfs@8302b6e32 2025-08-07 09:06:31 +02:00
contrib Merge bmake-20250804 2025-08-05 15:57:12 -07:00
crypto openssl: Import version 3.5.1 2025-08-07 15:54:34 +02:00
etc gssapi,krb5: Replace libgssapi with the MIT version 2025-08-07 10:17:00 -07:00
gnu build: remove the last vestiges of lint support 2025-06-06 00:55:34 +01:00
include gssapi,krb5: Replace libgssapi with the MIT version 2025-08-07 10:17:00 -07:00
kerberos5 build: remove the last vestiges of lint support 2025-06-06 00:55:34 +01:00
krb5 krb5: Don't add -Wno-macro-redefined to CFLAGS 2025-08-08 13:44:15 -04:00
lib pam_ksu: Fix crash when no ticket is present 2025-08-09 07:16:45 +01:00
libexec amd64: assume the kernel supports RDFSBASE and RDGSBASE 2025-08-08 18:15:21 +01:00
release libutil++: Move to clibs 2025-08-08 16:14:07 +01:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin packages: move route(6)d to the rip package 2025-08-07 13:36:59 +01:00
secure openssl: Import version 3.5.1 2025-08-07 15:54:34 +02:00
share bsd.mkopt.mk: Prepare a list of all build options 2025-08-09 00:46:04 +02:00
stand libsa: ip fragment reassembly is buggy 2025-08-08 10:10:08 +03:00
sys rpcsec_gss: Rename KRBIMP_HESIOD1 to KRBIMP_HEIMDALV1 2025-08-08 17:32:04 -07:00
targets zfsboot: Remove zfsboot(8) program used to boot ZFS from MBR + BIOS 2025-07-28 10:58:02 -04:00
tests tests: gif(4): Add regression tests for setup with EtherIP 2025-08-08 18:17:51 +08:00
tools bsd.mkopt.mk: Prepare a list of all build options 2025-08-09 00:46:04 +02:00
usr.bin sockstat: revert incorrect use of path-state for SCTP connections 2025-08-08 10:16:56 -06:00
usr.sbin inetd: don't assume that initgroups(3) will set the egid 2025-08-08 17:35:04 -05:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint
.cirrus.yml .cirrus.yml: Switch to manual mode for internal CI 2025-07-06 14:40:24 +02:00
.clang-format pam-krb5: Import/add pam-krb5 from eyeire.org 2025-05-27 09:20:06 -07:00
.git-blame-ignore-revs Fix: replace incorrect commit hash in .git-blame-ignore-revs 2025-08-07 12:01:17 -04:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore lyaml: vendor import lyaml bindings for libyaml version 6.2.8 2025-06-26 09:09:58 +02:00
.mailmap mailmap: Add Joyu Liao 2025-06-26 14:13:21 +02:00
CONTRIBUTING.md CONTRIBUTING: Tweak the language 2025-08-08 11:16:13 -06:00
COPYRIGHT copyright: Happy New Year 2025 2025-01-01 00:04:28 +00:00
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS man filesystems: fix more xrefs after move to s4 2024-06-27 18:32:05 -06:00
Makefile powerpc: Disconnect 32-bit powerpc from make universe 2025-07-14 11:01:09 -04:00
Makefile.inc1 gssapi,krb5: Replace libgssapi with the MIT version 2025-08-07 10:17:00 -07:00
Makefile.libcompat Makefile: Hook MIT KRB5 into the build 2025-06-15 19:49:37 -07:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc openssl: Import version 3.5.1 2025-08-07 15:54:34 +02:00
README.md lyaml: vendor import lyaml bindings for libyaml version 6.2.8 2025-06-26 09:09:58 +02:00
RELNOTES RELNOTES: Update the note for NVMeoF to reference ctld instead of nvmfd 2025-08-08 12:52:44 -04:00
UPDATING build: Switch CLEAN back on by default 2025-08-08 17:57:31 +02:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

For official FreeBSD bootable images, see the release page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.