Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_mib.c
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | |||||
SYSCTL_BOOL(_compat_linux, OID_AUTO, map_sched_prio, CTLFLAG_RDTUN, | SYSCTL_BOOL(_compat_linux, OID_AUTO, map_sched_prio, CTLFLAG_RDTUN, | ||||
&linux_map_sched_prio, 0, "Map scheduler priorities to Linux priorities " | &linux_map_sched_prio, 0, "Map scheduler priorities to Linux priorities " | ||||
"(not POSIX compliant)"); | "(not POSIX compliant)"); | ||||
int linux_use_emul_path = 1; | int linux_use_emul_path = 1; | ||||
SYSCTL_INT(_compat_linux, OID_AUTO, use_emul_path, CTLFLAG_RWTUN, | SYSCTL_INT(_compat_linux, OID_AUTO, use_emul_path, CTLFLAG_RWTUN, | ||||
&linux_use_emul_path, 0, "Use linux.compat.emul_path"); | &linux_use_emul_path, 0, "Use linux.compat.emul_path"); | ||||
static bool linux_setid_allowed = false; | |||||
SYSCTL_BOOL(_compat_linux, OID_AUTO, setid_allowed, CTLFLAG_RWTUN, | |||||
&linux_setid_allowed, 0, | |||||
"Allow setuid/setgid on execve of Linux binary"); | |||||
bool | |||||
linux_setid_allowed_query(struct thread *td __unused, | |||||
struct image_params *imgp __unused) | |||||
{ | |||||
return (linux_setid_allowed); | |||||
} | |||||
static int linux_set_osname(struct thread *td, char *osname); | static int linux_set_osname(struct thread *td, char *osname); | ||||
static int linux_set_osrelease(struct thread *td, char *osrelease); | static int linux_set_osrelease(struct thread *td, char *osrelease); | ||||
static int linux_set_oss_version(struct thread *td, int oss_version); | static int linux_set_oss_version(struct thread *td, int oss_version); | ||||
static int | static int | ||||
linux_sysctl_osname(SYSCTL_HANDLER_ARGS) | linux_sysctl_osname(SYSCTL_HANDLER_ARGS) | ||||
{ | { | ||||
char osname[LINUX_MAX_UTSNAME]; | char osname[LINUX_MAX_UTSNAME]; | ||||
▲ Show 20 Lines • Show All 470 Lines • Show Last 20 Lines |