freebsd-skq/libexec/rc/rc.d/gssd
Rick Macklem 01b139f212 Fix startup of gssd when /usr is a separately mounted local file system.
meowthink@gmail.com reported that the gssd daemon was not
starting, because /etc/rc.d/gssd was executed before his local
/usr file system was mounted.
He fixed the problem by adding mountcritlocal to the REQUIRED
line.

This fix seems safe and works for a separately mounted /usr file
system on a local disk.
The case of a separately mounted remote /usr file system (such as
NFS) is still broken, but there is no obvious solution for that.
Adding mountcritremote would fix the problem, but it would
cause a POLA violation, because all kerberized NFS mounts
in /etc/fstab would need the "late" option specified to work.

Submitted by:	meowthink@gmail.com
Reported by:	meowthink@gmail.com
Reviewed by:	0mp
MFC after:	2 weeks
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D27203
2020-11-14 01:49:49 +00:00

18 lines
228 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: gssd
# REQUIRE: root mountcritlocal
# KEYWORD: nojail shutdown
. /etc/rc.subr
name=gssd
desc="Generic Security Services Daemon"
rcvar=gssd_enable
load_rc_config $name
run_rc_command "$1"