Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_exec.c
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
static int sysctl_kern_ps_strings(SYSCTL_HANDLER_ARGS); | static int sysctl_kern_ps_strings(SYSCTL_HANDLER_ARGS); | ||||
static int sysctl_kern_usrstack(SYSCTL_HANDLER_ARGS); | static int sysctl_kern_usrstack(SYSCTL_HANDLER_ARGS); | ||||
static int sysctl_kern_stackprot(SYSCTL_HANDLER_ARGS); | static int sysctl_kern_stackprot(SYSCTL_HANDLER_ARGS); | ||||
static int do_execve(struct thread *td, struct image_args *args, | static int do_execve(struct thread *td, struct image_args *args, | ||||
struct mac *mac_p); | struct mac *mac_p); | ||||
/* XXX This should be vm_size_t. */ | /* XXX This should be vm_size_t. */ | ||||
SYSCTL_PROC(_kern, KERN_PS_STRINGS, ps_strings, CTLTYPE_ULONG|CTLFLAG_RD| | SYSCTL_PROC(_kern, KERN_PS_STRINGS, ps_strings, CTLTYPE_ULONG|CTLFLAG_RD| | ||||
CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_ps_strings, "LU", ""); | CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_ps_strings, "LU", | ||||
"Location of process' ps_strings structure"); | |||||
jhb: Perhaps "Location of process' ps_strings structure" | |||||
/* XXX This should be vm_size_t. */ | /* XXX This should be vm_size_t. */ | ||||
SYSCTL_PROC(_kern, KERN_USRSTACK, usrstack, CTLTYPE_ULONG|CTLFLAG_RD| | SYSCTL_PROC(_kern, KERN_USRSTACK, usrstack, CTLTYPE_ULONG|CTLFLAG_RD| | ||||
CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_usrstack, "LU", ""); | CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_usrstack, "LU", | ||||
"Top of process stack"); | |||||
Done Inline ActionsPerhaps "Top of process stack" (usrstack is the top, not the bottom of the stack, and even then we store various things on the stack such as argv[] and environment arrays before the actual stack used by main()) jhb: Perhaps "Top of process stack" (usrstack is the top, not the bottom of the stack, and even then… | |||||
SYSCTL_PROC(_kern, OID_AUTO, stackprot, CTLTYPE_INT|CTLFLAG_RD|CTLFLAG_MPSAFE, | SYSCTL_PROC(_kern, OID_AUTO, stackprot, CTLTYPE_INT|CTLFLAG_RD|CTLFLAG_MPSAFE, | ||||
NULL, 0, sysctl_kern_stackprot, "I", ""); | NULL, 0, sysctl_kern_stackprot, "I", | ||||
"Stack memory permissions"); | |||||
Done Inline ActionsUse style(9) similar to the entry before, the documentation string should be in a separate line, using proper indentation of 4 spaces. kaktus: Use style(9) similar to the entry before, the documentation string should be in a separate… | |||||
Done Inline ActionsPerhaps "Stack memory permissions". This has the same value as the "prot" argument to mmap (bitmask of PROT_* constants), and the description of "prot" in mmap(2) is "permissions" jhb: Perhaps "Stack memory permissions". This has the same value as the "prot" argument to mmap… | |||||
u_long ps_arg_cache_limit = PAGE_SIZE / 16; | u_long ps_arg_cache_limit = PAGE_SIZE / 16; | ||||
SYSCTL_ULONG(_kern, OID_AUTO, ps_arg_cache_limit, CTLFLAG_RW, | SYSCTL_ULONG(_kern, OID_AUTO, ps_arg_cache_limit, CTLFLAG_RW, | ||||
&ps_arg_cache_limit, 0, ""); | &ps_arg_cache_limit, 0, | ||||
"Process' command line characters cache limit"); | |||||
static int disallow_high_osrel; | static int disallow_high_osrel; | ||||
SYSCTL_INT(_kern, OID_AUTO, disallow_high_osrel, CTLFLAG_RW, | SYSCTL_INT(_kern, OID_AUTO, disallow_high_osrel, CTLFLAG_RW, | ||||
&disallow_high_osrel, 0, | &disallow_high_osrel, 0, | ||||
"Disallow execution of binaries built for higher version of the world"); | "Disallow execution of binaries built for higher version of the world"); | ||||
static int map_at_zero = 0; | static int map_at_zero = 0; | ||||
SYSCTL_INT(_security_bsd, OID_AUTO, map_at_zero, CTLFLAG_RWTUN, &map_at_zero, 0, | SYSCTL_INT(_security_bsd, OID_AUTO, map_at_zero, CTLFLAG_RWTUN, &map_at_zero, 0, | ||||
▲ Show 20 Lines • Show All 1,685 Lines • Show Last 20 Lines |
Perhaps "Location of process' ps_strings structure"