NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/61091: MKPAM=no kerberized su(1) is busted
>Number: 61091
>Category: bin
>Synopsis: MKPAM=no kerberized su(1) is busted
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 30 00:45:00 +0000 2026
>Originator: Taylor R Campbell
>Release: current, 11, 10, 9, 8, 7, ...
>Organization:
Union of Soviet Socialist Kerpublics, pam_inc
>Environment:
>Description:
$ su riastradh
riastradh%EXAMPLE.COM@localhost's Password:
su: chown 0x7e3294e318a0: No such file or directory
Happened because a change in 2012 to make it build after a
Heimdal update wasn't quite enough to make it _work_ after a
Heimdal update:
- ret = krb5_cc_gen_new(context, &krb5_mcc_ops, &ccache);
+ ret = krb5_cc_new_unique(context, krb5_mcc_ops.prefix, NULL, &ccache);
...
- ret = krb5_cc_gen_new(context, &krb5_fcc_ops, &ccache2);
+ ret = krb5_cc_new_unique(context, krb5_mcc_ops.prefix, NULL, &ccache2);
https://mail-index.netbsd.org/source-changes/2012/04/12/msg033638.html
(Can you spot the typo? Spoilers below!)
>How-To-Repeat:
1. build with MKPAM=no MKKERBEROS=yes
2. su <user>
>Fix:
s/krb5_mcc_ops/krb5_fcc_ops/1 in the second hunk so that we
write the credentials from an in-memory cache to a file cache
instead of just to a second in-memory cache.
Home |
Main Index |
Thread Index |
Old Index