Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 23:52:34 +0000
From:      =?iso-8859-1?Q?Bruno_Lauz=E9?= <brunolauze@msn.com>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   mlock and jail
Message-ID:  <SN1PR16MB0640DDC0DACEF22A63E7467FC64D0@SN1PR16MB0640.namprd16.prod.outlook.com>

next in thread | raw e-mail | index | archive | help

I would like to ask if there is a reason I would have to applythe  patch be=
low to make an application work in a jail.
And who's bad? the app too intrusive or the bsd not flexible enough (allow.=
mlock?)


Index: sys/kern/kern_jail.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- sys/kern/kern_jail.c =A0 =A0 =A0 =A0(revision 313033)
+++ sys/kern/kern_jail.c =A0 =A0 =A0 =A0(working copy)
@@ -3340,6 +3340,11 @@
=A0 =A0 =A0 =A0 case PRIV_PROC_SETLOGINCLASS:
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return (0);


+ =A0 =A0 =A0 =A0case PRIV_VM_MADV_PROTECT:
+ =A0 =A0 =A0 =A0case PRIV_VM_MLOCK:
+ =A0 =A0 =A0 =A0case PRIV_VM_MUNLOCK:
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return (0);
+
=A0 =A0 =A0 =A0 default:





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SN1PR16MB0640DDC0DACEF22A63E7467FC64D0>