Go to file
martin bb549d4dda Pull up following revision(s) (requested by riastradh in ticket #1896):
lib/libpam/modules/pam_ksu/pam_ksu.c: revision 1.11

pam_ksu(8): Allow homedir access during kuserok.

Otherwise, the default kuserok logic to look at ~targetuser/.k5login
would be blocked by the security measure to thwart NetBSD-SA2023-005.

(There are other ways, e.g. setting SYSTEM-K5LOGIN in /etc/krb5.conf
so the file is /etc/k5login.d/user instead of ~user/.k5login, but
that's not the default configuration and there are plenty of
deployments that rely on ~user/.k5login today.)

I reviewed libkrb5 for homedir access checks.  There are three:
1. krb5_config_parse_file_multi, called only by:
   - verify_krb5_conf -- not relevant
   - krb5_config_parse_file -- not used here as far as I can tell,
     only by libhdb ldap logic and test code in heimdal
   - krb5_set_config_files -- used here only via krb5_init_context,
     which is done at this point
2. plugin_get_hosts in krbhst.c, used to look up hosts for KDC I/O,
   which shouldn't be happening at this point, so this is almost
   certainly unreachable; also it only appears to control whether
   some old plugin API can be used, long after we have read the krb5
   config controlling which plugins are available, so this is
   probably harmless
3. krb5_kuserok, which is the one we want to allow

Note: This will have to be updated again in the next Heimdal update,
which eliminates the global homedir access flag in favour of making
the default per-context homedir access flag conditional on !issuid.
2023-09-08 09:09:56 +00:00
bin Pull up following revision(s) (requested by kre in ticket #1779): 2022-10-27 16:16:50 +00:00
common Pull up following revision(s) (requested by skrll in ticket #1672): 2021-04-26 18:39:26 +00:00
compat Apply patch, requested by mrg in ticket #1684 (no corresponding 2021-06-21 17:43:18 +00:00
crypto Pull up following revision(s) (requested by mrg in ticket #1895): 2023-09-06 08:03:45 +00:00
dist/pf Pull up following revision(s) (requested by maxv in ticket #978): 2018-08-25 11:21:53 +00:00
distrib Pull up following revision(s) (requested by riastradh in ticket #1886): 2023-08-09 16:16:40 +00:00
doc Ticket #1895 2023-09-06 08:04:43 +00:00
etc Pull up following revision(s) (requested by riastradh in ticket #1843): 2023-06-21 21:50:34 +00:00
external Pull up following revision(s) (requested by gutteridge in ticket #1850): 2023-07-07 18:49:27 +00:00
extsrc
games Pull up following revision(s) (requested by nia in ticket #1544): 2020-04-30 16:21:14 +00:00
include Pull up following revision(s) (requested by is in ticket #1625): 2020-11-29 11:18:54 +00:00
lib Pull up following revision(s) (requested by riastradh in ticket #1896): 2023-09-08 09:09:56 +00:00
libexec Pull up following revision(s) (requested by riastradh in ticket #1886): 2023-08-09 16:16:40 +00:00
regress Pull up following revision(s) (requested by maxv in ticket #282): 2017-09-23 17:27:02 +00:00
rescue Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
sbin Pull up following revision(s) (requested by msaitoh in ticket #1741): 2022-05-15 12:15:53 +00:00
share Pull up following revision(s) (requested by msaitoh in ticket #1784): 2023-01-19 10:41:58 +00:00
sys Pull up following revision(s) (requested by msaitoh in ticket #1894): 2023-09-04 17:57:49 +00:00
tests Pull up following revision(s) (requested by riastradh in ticket #1886): 2023-08-09 16:16:40 +00:00
tools Apply patch, requested by maya in ticket #1070: 2018-10-26 15:12:53 +00:00
usr.bin Pull up following revision(s) (requested by riastradh in ticket #1879): 2023-08-04 13:12:00 +00:00
usr.sbin Pull up following revision(s) (requested by msaitoh in ticket #1892): 2023-08-23 18:10:06 +00:00
BUILDING regen 2017-05-21 15:30:20 +00:00
Makefile don't descend into gnu 2017-04-11 14:04:15 +00:00
Makefile.inc
UPDATING New dhcpcd does not like update builds from previous versions. 2017-04-03 09:37:58 +00:00
build.sh Pull up the following revision (requested by martin in ticket #1807): 2023-03-13 21:36:29 +00:00