Page MenuHomeFreeBSD

Add a check for enforce_statfs != 0 to prison_check_nfsd()
ClosedPublic

Authored by rmacklem on Jan 24 2023, 10:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 16, 11:34 PM
Unknown Object (File)
Wed, Oct 16, 8:02 AM
Unknown Object (File)
Wed, Oct 16, 7:18 AM
Unknown Object (File)
Oct 1 2024, 3:45 PM
Unknown Object (File)
Oct 1 2024, 3:40 PM
Unknown Object (File)
Sep 23 2024, 5:38 AM
Unknown Object (File)
Sep 21 2024, 4:01 PM
Unknown Object (File)
Sep 21 2024, 6:47 AM
Subscribers

Details

Summary

Since mountd(8) will not be able to do exports
when running in a vnet prison if enforce_statfs is
set to 0, add a check for this to prison_check_nfsd().

Discussed over on D38144.

Test Plan

Tested in a system patched to allow mountd to
run in vnet prisons with enforce_statfs set to 0.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Sure, this one's no biggie.

This revision is now accepted and ready to land.Jan 30 2023, 3:34 AM

It looks like one can change enforce_statfs in an existing jail, so this doesn't seem quite sufficient? It might be useful to allow changing enforce_statfs after mountd starts though, so perhaps this is fine?

It'd be worth documenting this in jail(8) IMHO.