Re: Geli in a Jail? geli: Cannot lock memory: Operation not permitted.

From: Rudy <crapsh_at_monkeybrains.net>
Date: Tue, 31 Mar 2009 00:25:48 -0700
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
Received on Tue Mar 31 2009 - 05:25:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:45 UTC