Lines Matching full:linux
37 #include <compat/linux/linux_mib.h>
38 #include <compat/linux/linux_misc.h>
48 .pr_osname = "Linux",
56 SYSCTL_NODE(_compat, OID_AUTO, linux, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
57 "Linux mode");
61 &linux_debug, 0, "Log warnings from linux(4); or 0 to disable");
76 "Return dummy values for unsupported Linux-specific rlimits");
88 &linux_map_sched_prio, 0, "Map scheduler priorities to Linux priorities "
94 "Allow setuid/setgid on execve of Linux binary");
125 "Linux kernel OS name");
145 "Linux kernel OS release");
165 "Linux OSS version");
202 * Find a prison with Linux info.
203 * Return the Linux info and the (locked) prison.
226 * Ensure a prison has its own Linux info. If lprp is non-null, point it to
227 * the Linux info and lock the prison.
236 /* If this prison already has Linux info, return that. */ in linux_alloc_prison()
267 * Jail OSD methods for Linux prison data.
276 if (vfs_copyopt(opts, "linux", &jsys, sizeof(jsys)) == 0 && in linux_prison_create()
295 error = vfs_copyopt(opts, "linux", &jsys, sizeof(jsys)); in linux_prison_check()
302 error = vfs_getopt(opts, "linux.osname", (void **)&osname, &len); in linux_prison_check()
309 vfs_opterror(opts, "linux.osname too long"); in linux_prison_check()
313 error = vfs_getopt(opts, "linux.osrelease", (void **)&osrelease, &len); in linux_prison_check()
320 vfs_opterror(opts, "linux.osrelease too long"); in linux_prison_check()
325 vfs_opterror(opts, "linux.osrelease format error"); in linux_prison_check()
329 error = vfs_copyopt(opts, "linux.oss_version", &oss_version, in linux_prison_check()
347 error = vfs_copyopt(opts, "linux", &jsys, sizeof(jsys)); in linux_prison_set()
350 error = vfs_getopt(opts, "linux.osname", (void **)&osname, &len); in linux_prison_set()
355 error = vfs_getopt(opts, "linux.osrelease", (void **)&osrelease, &len); in linux_prison_set()
360 error = vfs_copyopt(opts, "linux.oss_version", &oss_version, in linux_prison_set()
370 /* "linux=inherit": inherit the parent's Linux info. */ in linux_prison_set()
377 * "linux=new" or "linux.*": in linux_prison_set()
378 * the prison gets its own Linux info. in linux_prison_set()
396 SYSCTL_JAIL_PARAM_SYS_NODE(linux, CTLFLAG_RW, "Jail Linux parameters");
398 "Jail Linux kernel OS name");
400 "Jail Linux kernel OS release");
402 "I", "Jail Linux OSS version");
415 /* See if this prison is the one with the Linux info. */ in linux_prison_get()
418 error = vfs_setopt(opts, "linux", &i, sizeof(i)); in linux_prison_get()
422 error = vfs_setopts(opts, "linux.osname", lpr->pr_osname); in linux_prison_get()
425 error = vfs_setopts(opts, "linux.osrelease", lpr->pr_osrelease); in linux_prison_get()
428 error = vfs_setopt(opts, "linux.oss_version", in linux_prison_get()
434 * If this prison is inheriting its Linux info, report in linux_prison_get()
437 error = vfs_setopts(opts, "linux.osname", ""); in linux_prison_get()
440 error = vfs_setopts(opts, "linux.osrelease", ""); in linux_prison_get()
443 error = vfs_setopt(opts, "linux.oss_version", &version0, in linux_prison_get()
476 /* Copy the system Linux info to any current prisons. */ in linux_osd_jail_register()