Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143366105
D38189.id116290.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
622 B
Referenced Files
None
Subscribers
None
D38189.id116290.diff
View Options
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -3491,6 +3491,8 @@
* - The root directory (pr_root) of the prison must be
* a file system mount point, so the mountd can hang
* export information on it.
+ * - The prison's enforce_statfs cannot be 0, so that
+ * mountd(8) can do exports.
*/
bool
prison_check_nfsd(struct ucred *cred)
@@ -3502,6 +3504,8 @@
return (false);
if ((cred->cr_prison->pr_root->v_vflag & VV_ROOT) == 0)
return (false);
+ if (cred->cr_prison->pr_enforce_statfs == 0)
+ return (false);
return (true);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 30, 11:41 AM (1 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28086809
Default Alt Text
D38189.id116290.diff (622 B)
Attached To
Mode
D38189: Add a check for enforce_statfs != 0 to prison_check_nfsd()
Attached
Detach File
Event Timeline
Log In to Comment