Page MenuHomeFreeBSD

D25045.diff
No OneTemporary

D25045.diff

Index: head/sys/kern/vfs_mount.c
===================================================================
--- head/sys/kern/vfs_mount.c
+++ head/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

Mime Type
text/plain
Expires
Tue, May 19, 2:52 AM (19 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33287953
Default Alt Text
D25045.diff (785 B)

Event Timeline