diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2018-07-29 12:41:56 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2018-07-29 12:41:56 +0000 |
commit | ccd6ac9f6e5c1f92c0ce92de1f037a1b5d7716cb (patch) | |
tree | 862506675d558cefa879d5d9ae9f69877d7fc805 /sys/sys | |
parent | fc67c746c0555b7425e5d81c7a5802e1071d75bb (diff) | |
download | src-ccd6ac9f6e5c1f92c0ce92de1f037a1b5d7716cb.tar.gz src-ccd6ac9f6e5c1f92c0ce92de1f037a1b5d7716cb.zip |
Add allow.mlock to jail parameters
It allows locking or unlocking physical pages in memory within a jail
This allows running elasticsearch with "bootstrap.memory_lock" inside a jail
Reviewed by: jamie@
Differential Revision: https://reviews.freebsd.org/D16342
Notes
Notes:
svn path=/head/; revision=336868
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/jail.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/jail.h b/sys/sys/jail.h index 4d234840ac08..ec1013cb0071 100644 --- a/sys/sys/jail.h +++ b/sys/sys/jail.h @@ -227,9 +227,10 @@ struct prison_racct { #define PR_ALLOW_MOUNT 0x00000010 #define PR_ALLOW_QUOTAS 0x00000020 #define PR_ALLOW_SOCKET_AF 0x00000040 +#define PR_ALLOW_MLOCK 0x00000080 #define PR_ALLOW_RESERVED_PORTS 0x00008000 #define PR_ALLOW_KMEM_ACCESS 0x00010000 /* reserved, not used yet */ -#define PR_ALLOW_ALL_STATIC 0x0001807f +#define PR_ALLOW_ALL_STATIC 0x000180ff /* * OSD methods |