Home
last modified time | relevance | path

Searched refs:jsys (Results 1 – 7 of 7) sorted by relevance

/freebsd-14.2/sys/compat/linux/
H A Dlinux_mib.c274 int jsys; in linux_prison_create() local
276 if (vfs_copyopt(opts, "linux", &jsys, sizeof(jsys)) == 0 && in linux_prison_create()
277 jsys == JAIL_SYS_INHERIT) in linux_prison_create()
295 error = vfs_copyopt(opts, "linux", &jsys, sizeof(jsys)); in linux_prison_check()
299 if (jsys != JAIL_SYS_NEW && jsys != JAIL_SYS_INHERIT) in linux_prison_check()
347 error = vfs_copyopt(opts, "linux", &jsys, sizeof(jsys)); in linux_prison_set()
349 jsys = -1; in linux_prison_set()
354 jsys = JAIL_SYS_NEW; in linux_prison_set()
359 jsys = JAIL_SYS_NEW; in linux_prison_set()
366 jsys = JAIL_SYS_NEW; in linux_prison_set()
[all …]
/freebsd-14.2/sys/security/mac_do/
H A Dmac_do.c276 int error, jsys, len; in mac_do_prison_set() local
278 error = vfs_copyopt(opts, "mdo", &jsys, sizeof(jsys)); in mac_do_prison_set()
280 jsys = -1; in mac_do_prison_set()
285 jsys = JAIL_SYS_NEW; in mac_do_prison_set()
286 switch (jsys) { in mac_do_prison_set()
324 int jsys, error; in mac_do_prison_get() local
327 error = vfs_setopt(opts, "mdo", &jsys, sizeof(jsys)); in mac_do_prison_get()
366 int error, jsys, len; in mac_do_prison_check() local
368 error = vfs_copyopt(opts, "mdo", &jsys, sizeof(jsys)); in mac_do_prison_check()
372 if (jsys != JAIL_SYS_NEW && jsys != JAIL_SYS_INHERIT) in mac_do_prison_check()
/freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vfsops.c2380 int jsys; in zfs_jailparam_create() local
2382 if (vfs_copyopt(opts, "zfs", &jsys, sizeof (jsys)) == 0 && in zfs_jailparam_create()
2399 int jsys, error; in zfs_jailparam_get() local
2403 error = vfs_setopt(opts, "zfs", &jsys, sizeof (jsys)); in zfs_jailparam_get()
2406 if (jsys == JAIL_SYS_NEW) { in zfs_jailparam_get()
2438 error = vfs_copyopt(opts, "zfs", &jsys, sizeof (jsys)); in zfs_jailparam_set()
2440 jsys = -1; in zfs_jailparam_set()
2446 jsys = JAIL_SYS_NEW; in zfs_jailparam_set()
2447 switch (jsys) { in zfs_jailparam_set()
2493 error = vfs_copyopt(opts, "zfs", &jsys, sizeof (jsys)); in zfs_jailparam_check()
[all …]
/freebsd-14.2/sys/kern/
H A Dsysv_shm.c1164 int error, jsys; in shm_prison_check() local
1170 error = vfs_copyopt(opts, "sysvshm", &jsys, sizeof(jsys)); in shm_prison_check()
1174 switch (jsys) { in shm_prison_check()
1200 int jsys, descend; in shm_prison_set() local
1207 if (vfs_copyopt(opts, "sysvshm", &jsys, sizeof(jsys)) == ENOENT) in shm_prison_set()
1213 if (jsys == JAIL_SYS_DISABLE) { in shm_prison_set()
1237 } else if (jsys != -1) { in shm_prison_set()
1238 if (jsys == JAIL_SYS_NEW) in shm_prison_set()
1287 int error, jsys; in shm_prison_get() local
1293 jsys = rpr == NULL ? JAIL_SYS_DISABLE in shm_prison_get()
[all …]
H A Dsysv_msg.c1536 int error, jsys; in msg_prison_check() local
1542 error = vfs_copyopt(opts, "sysvmsg", &jsys, sizeof(jsys)); in msg_prison_check()
1546 switch (jsys) { in msg_prison_check()
1572 int jsys, descend; in msg_prison_set() local
1578 if (vfs_copyopt(opts, "sysvmsg", &jsys, sizeof(jsys)) == ENOENT) in msg_prison_set()
1584 if (jsys == JAIL_SYS_DISABLE) { in msg_prison_set()
1608 } else if (jsys != -1) { in msg_prison_set()
1609 if (jsys == JAIL_SYS_NEW) in msg_prison_set()
1658 int error, jsys; in msg_prison_get() local
1664 jsys = rpr == NULL ? JAIL_SYS_DISABLE in msg_prison_get()
[all …]
H A Dsysv_sem.c1615 int error, jsys; in sem_prison_check() local
1621 error = vfs_copyopt(opts, "sysvsem", &jsys, sizeof(jsys)); in sem_prison_check()
1625 switch (jsys) { in sem_prison_check()
1651 int jsys, descend; in sem_prison_set() local
1657 if (vfs_copyopt(opts, "sysvsem", &jsys, sizeof(jsys)) == ENOENT) in sem_prison_set()
1663 if (jsys == JAIL_SYS_DISABLE) { in sem_prison_set()
1687 } else if (jsys != -1) { in sem_prison_set()
1688 if (jsys == JAIL_SYS_NEW) in sem_prison_set()
1737 int error, jsys; in sem_prison_get() local
1743 jsys = rpr == NULL ? JAIL_SYS_DISABLE in sem_prison_get()
[all …]
H A Dkern_jail.c993 int jid, jsys, len, level; in kern_jail_set() local
1100 error = vfs_copyopt(opts, jsf->name, &jsys, sizeof(jsys)); in kern_jail_set()
1105 switch (jsys) { in kern_jail_set()