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

Rudy crapsh at monkeybrains.net
Tue Mar 31 00:25:54 PDT 2009


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






More information about the freebsd-current mailing list