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)
Apr 27 2024, 10:21 AM
Unknown Object (File)
Dec 16 2023, 7:19 PM
Unknown Object (File)
Dec 11 2023, 12:51 AM
Unknown Object (File)
Nov 25 2023, 5:20 AM
Unknown Object (File)
Nov 23 2023, 8:33 AM
Unknown Object (File)
Nov 23 2023, 7:33 AM
Unknown Object (File)
Nov 23 2023, 5:58 AM
Unknown Object (File)
Nov 14 2023, 1:52 PM
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.