Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2009 00:25:48 -0700
From:      Rudy <crapsh@monkeybrains.net>
To:        freebsd-current@freebsd.org
Subject:   Re: Geli in a Jail? geli: Cannot lock memory: Operation not permitted.
Message-ID:  <49D1C57C.9050202@monkeybrains.net>
In-Reply-To: <49D1B7CD.1080702@monkeybrains.net>
References:  <49D1B7CD.1080702@monkeybrains.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Rudy wrote:
> I could't init a geli in a jail.  Anyone know how?
>
> Here is what I tried
>
> jail# geli init -s 4096 -K /root/gelitest.key /dev/zvol/tank/testgeli
> geli: Cannot lock memory: Operation not permitted.
>   

Running truss, it seems to be mlockall...

mlockall(0x2,0x7fffffffb240,0x800e058b0,0x800ac1c9c,0xfffffffeee007d40,0x7fffffffadb8)
ERR#1 'Operation not permitted'
geli: write(2,"geli: ",6)                 = 6 (0x6)
Cannot lock memory: Operation not permitted.write(2,"Cannot lock memory:
Operation no"...,44) = 44 (0x2c)


Is this a mlock() in jail issue or an can't talk to a kernel module issue?

Rudy







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