Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/vfs_mount.c
Show First 20 Lines • Show All 2,337 Lines • ▼ Show 20 Lines | for (;;) { | ||||
ma = mount_arg(ma, cp, vp, (vp != NULL ? -1 : 0)); | ma = mount_arg(ma, cp, vp, (vp != NULL ? -1 : 0)); | ||||
} | } | ||||
va_end(ap); | va_end(ap); | ||||
error = kernel_mount(ma, flags); | error = kernel_mount(ma, flags); | ||||
return (error); | 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 | void | ||||
vfs_oexport_conv(const struct oexport_args *oexp, struct export_args *exp) | vfs_oexport_conv(const struct oexport_args *oexp, struct export_args *exp) | ||||
{ | { | ||||
bcopy(oexp, exp, sizeof(*oexp)); | bcopy(oexp, exp, sizeof(*oexp)); | ||||
if (exp->ex_flags & MNT_EXPORTED) { | |||||
exp->ex_numsecflavors = 1; | |||||
exp->ex_secflavors[0] = AUTH_SYS; | |||||
} else { | |||||
exp->ex_numsecflavors = 0; | exp->ex_numsecflavors = 0; | ||||
} | |||||
} | } |