Page MenuHomeFreeBSD

fix /etc/rc.d/gssd so that it doesn't run before /usr is mounted
ClosedPublic

Authored by rmacklem on Nov 13 2020, 1:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 7:14 PM
Unknown Object (File)
Sat, Mar 30, 7:10 AM
Unknown Object (File)
Feb 23 2024, 11:47 AM
Unknown Object (File)
Feb 23 2024, 11:47 AM
Unknown Object (File)
Feb 23 2024, 11:47 AM
Unknown Object (File)
Feb 23 2024, 11:34 AM
Unknown Object (File)
Jan 17 2024, 12:05 PM
Unknown Object (File)
Dec 20 2023, 7:24 AM
Subscribers

Details

Summary

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.

Test Plan

Tested with/without gssd_enable="YES" in /etc/rc.conf.
(The gssd started fine on the system, which does have
a separately mounted /usr from a local disk.)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Seems reasonable. I've not tested it.

I wonder if this one should get a Relnotes: yes, so that users get reminded about it when 13.0 is released.

etc/rc.d/gssd
7 ↗(On Diff #79495)

I am not sure, but maybe it should be sorted alphabetically? Just an idea.

This revision is now accepted and ready to land.Nov 13 2020, 9:44 AM