Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132330710
D25045.id72390.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
770 B
Referenced Files
None
Subscribers
None
D25045.id72390.diff
View Options
Index: sys/kern/vfs_mount.c
===================================================================
--- sys/kern/vfs_mount.c
+++ sys/kern/vfs_mount.c
@@ -2343,10 +2343,22 @@
return (error);
}
+/*
+ * Convert the old export args format into new export args.
+ *
+ * The old export args struct does not have security flavors. Otherwise, the
+ * structs are identical. The default security flavor 'sys' is applied when
+ * the given args export the filesystem.
+ */
void
vfs_oexport_conv(const struct oexport_args *oexp, struct export_args *exp)
{
bcopy(oexp, exp, sizeof(*oexp));
- exp->ex_numsecflavors = 0;
+ if (exp->ex_flags & MNT_EXPORTED) {
+ exp->ex_numsecflavors = 1;
+ exp->ex_secflavors[0] = AUTH_SYS;
+ } else {
+ exp->ex_numsecflavors = 0;
+ }
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 16, 11:24 PM (3 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23808388
Default Alt Text
D25045.id72390.diff (770 B)
Attached To
Mode
D25045: Assign default security flavor when converting old export args
Attached
Detach File
Event Timeline
Log In to Comment