mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
jail: add security.jail.mlock_allowed
when the parameter allow.mlock was added a way for jails to check
if the parameter was set or now has not been added, this change
covers it.
MFC After: 3 days
Reviewed by: jamie@
Differential Revision: https://reviews.freebsd.org/D43314
(cherry picked from commit 9fd978680d)
This commit is contained in:
parent
0a586a7d75
commit
d1fdafc789
1 changed files with 4 additions and 0 deletions
|
|
@ -4393,6 +4393,10 @@ SYSCTL_PROC(_security_jail, OID_AUTO, mount_allowed,
|
|||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
|
||||
NULL, PR_ALLOW_MOUNT, sysctl_jail_default_allow, "I",
|
||||
"Processes in jail can mount/unmount jail-friendly file systems (deprecated)");
|
||||
SYSCTL_PROC(_security_jail, OID_AUTO, mlock_allowed,
|
||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
|
||||
NULL, PR_ALLOW_MLOCK, sysctl_jail_default_allow, "I",
|
||||
"Processes in jail can lock/unlock physical pages in memory");
|
||||
|
||||
static int
|
||||
sysctl_jail_default_level(SYSCTL_HANDLER_ARGS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue