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>

index | next in thread | raw e-mail


I would like to ask if there is a reason I would have to applythe  patch below 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
===================================================================
--- sys/kern/kern_jail.c        (revision 313033)
+++ sys/kern/kern_jail.c        (working copy)
@@ -3340,6 +3340,11 @@
        case PRIV_PROC_SETLOGINCLASS:
                return (0);


+        case PRIV_VM_MADV_PROTECT:
+        case PRIV_VM_MLOCK:
+        case PRIV_VM_MUNLOCK:
+                return (0);
+
        default:




help

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