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)
Oct 14 2024, 12:55 AM
Unknown Object (File)
Sep 29 2024, 7:41 PM
Unknown Object (File)
Sep 29 2024, 7:41 PM
Unknown Object (File)
Sep 17 2024, 5:38 AM
Unknown Object (File)
Sep 17 2024, 5:26 AM
Unknown Object (File)
Sep 5 2024, 6:48 PM
Unknown Object (File)
Aug 24 2024, 2:06 AM
Unknown Object (File)
Aug 24 2024, 2:05 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