Lines 207-212
static char *pr_allow_names[] = {
Link Here
|
207 |
"allow.mount.zfs", |
207 |
"allow.mount.zfs", |
208 |
"allow.mount.procfs", |
208 |
"allow.mount.procfs", |
209 |
"allow.mount.tmpfs", |
209 |
"allow.mount.tmpfs", |
|
|
210 |
"allow.mount.fdescfs", |
210 |
}; |
211 |
}; |
211 |
const size_t pr_allow_names_size = sizeof(pr_allow_names); |
212 |
const size_t pr_allow_names_size = sizeof(pr_allow_names); |
212 |
|
213 |
|
Lines 223-228
static char *pr_allow_nonames[] = {
Link Here
|
223 |
"allow.mount.nozfs", |
224 |
"allow.mount.nozfs", |
224 |
"allow.mount.noprocfs", |
225 |
"allow.mount.noprocfs", |
225 |
"allow.mount.notmpfs", |
226 |
"allow.mount.notmpfs", |
|
|
227 |
"allow.mount.nofdescfs", |
226 |
}; |
228 |
}; |
227 |
const size_t pr_allow_nonames_size = sizeof(pr_allow_nonames); |
229 |
const size_t pr_allow_nonames_size = sizeof(pr_allow_nonames); |
228 |
|
230 |
|
Lines 4245-4250
SYSCTL_PROC(_security_jail, OID_AUTO, mount_zfs_allowed,
Link Here
|
4245 |
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, |
4247 |
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, |
4246 |
NULL, PR_ALLOW_MOUNT_ZFS, sysctl_jail_default_allow, "I", |
4248 |
NULL, PR_ALLOW_MOUNT_ZFS, sysctl_jail_default_allow, "I", |
4247 |
"Processes in jail can mount the zfs file system"); |
4249 |
"Processes in jail can mount the zfs file system"); |
|
|
4250 |
SYSCTL_PROC(_security_jail, OID_AUTO, mount_fdescfs_allowed, |
4251 |
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, |
4252 |
NULL, PR_ALLOW_MOUNT_FDESCFS, sysctl_jail_default_allow, "I", |
4253 |
"Processes in jail can mount the fdescfs file system"); |
4248 |
|
4254 |
|
4249 |
static int |
4255 |
static int |
4250 |
sysctl_jail_default_level(SYSCTL_HANDLER_ARGS) |
4256 |
sysctl_jail_default_level(SYSCTL_HANDLER_ARGS) |
Lines 4397-4402
SYSCTL_JAIL_PARAM(_allow_mount, tmpfs, CTLTYPE_INT | CTLFLAG_RW,
Link Here
|
4397 |
"B", "Jail may mount the tmpfs file system"); |
4403 |
"B", "Jail may mount the tmpfs file system"); |
4398 |
SYSCTL_JAIL_PARAM(_allow_mount, zfs, CTLTYPE_INT | CTLFLAG_RW, |
4404 |
SYSCTL_JAIL_PARAM(_allow_mount, zfs, CTLTYPE_INT | CTLFLAG_RW, |
4399 |
"B", "Jail may mount the zfs file system"); |
4405 |
"B", "Jail may mount the zfs file system"); |
|
|
4406 |
SYSCTL_JAIL_PARAM(_allow_mount, fdescfs, CTLTYPE_INT | CTLFLAG_RW, |
4407 |
"B", "Jail may mount the fdescfs file system"); |
4400 |
|
4408 |
|
4401 |
void |
4409 |
void |
4402 |
prison_racct_foreach(void (*callback)(struct racct *racct, |
4410 |
prison_racct_foreach(void (*callback)(struct racct *racct, |