Changeset View
Changeset View
Standalone View
Standalone View
head/sys/fs/fdescfs/fdesc_vfsops.c
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Mount the per-process file descriptors (/dev/fd) | * Mount the per-process file descriptors (/dev/fd) | ||||
*/ | */ | ||||
static int | static int | ||||
fdesc_mount(struct mount *mp) | fdesc_mount(struct mount *mp) | ||||
{ | { | ||||
struct fdescmount *fmp; | struct fdescmount *fmp; | ||||
struct thread *td = curthread; | |||||
struct vnode *rvp; | struct vnode *rvp; | ||||
int error; | int error; | ||||
if (!prison_allow(td->td_ucred, PR_ALLOW_MOUNT_FDESCFS)) | |||||
return (EPERM); | |||||
/* | /* | ||||
* Update is a no-op | * Update is a no-op | ||||
*/ | */ | ||||
if (mp->mnt_flag & (MNT_UPDATE | MNT_ROOTFS)) | if (mp->mnt_flag & (MNT_UPDATE | MNT_ROOTFS)) | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
fmp = malloc(sizeof(struct fdescmount), | fmp = malloc(sizeof(struct fdescmount), | ||||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |