MFC: Allow the ia32 resource limits to be set via loader tunables.
This commit is contained in:
parent
bfe21aa400
commit
243f1a073b
@ -272,10 +272,13 @@ ia32_copyout_strings(struct image_params *imgp)
|
||||
|
||||
static u_long ia32_maxdsiz = IA32_MAXDSIZ;
|
||||
SYSCTL_ULONG(_compat_ia32, OID_AUTO, maxdsiz, CTLFLAG_RW, &ia32_maxdsiz, 0, "");
|
||||
TUNABLE_ULONG("compat.ia32.maxdsiz", &ia32_maxdsiz);
|
||||
static u_long ia32_maxssiz = IA32_MAXSSIZ;
|
||||
SYSCTL_ULONG(_compat_ia32, OID_AUTO, maxssiz, CTLFLAG_RW, &ia32_maxssiz, 0, "");
|
||||
TUNABLE_ULONG("compat.ia32.maxssiz", &ia32_maxssiz);
|
||||
static u_long ia32_maxvmem = IA32_MAXVMEM;
|
||||
SYSCTL_ULONG(_compat_ia32, OID_AUTO, maxvmem, CTLFLAG_RW, &ia32_maxvmem, 0, "");
|
||||
TUNABLE_ULONG("compat.ia32.maxvmem", &ia32_maxvmem);
|
||||
|
||||
static void
|
||||
ia32_fixlimit(struct rlimit *rl, int which)
|
||||
|
Loading…
Reference in New Issue
Block a user