Re: jail2 patchset 12
- From: Alex Lyashkov <umka@xxxxxxxxxxx>
- Date: Mon, 18 Sep 2006 01:08:24 +0300
Thanks for you report. I really more test new jail2 API then old :(
Please apply this patch.
# p4 diff -du kern_jail.c
==== //depot/projects/jail2/sys/kern/kern_jail.c#4 -
/root/jail2/sys/kern/kern_jail.c ====
@@ -316,6 +316,7 @@
if (error)
return (error);
+ mtx_lock(&allprison_mtx);
pr = prison_find(uap->jid);
if (pr == NULL) {
return (ESRCH);
В Пнд, 18.09.2006, в 00:19, Kris Kennaway пишет:
On Sat, Sep 16, 2006 at 02:54:16PM +0300, Alex Lyashkov wrote:_______________________________________________
Hello All,
Some time ago I finished the next public jail2 patchset.
As of now, jail2 supports per-jail SYSV IPC namespaces.
It is possible to configure which jails can and which cannot use
SYSV IPC. The UID hash is also perl-jail now.
he patchset also implements per-jail resource limits, such as:
- number of SYSV IPC objects;
- number of processes;
- number of filedescriptors.
In addition, all jail-related code was moved under 'options JAIL'.
The project's homepage:
http://docs.freevps.com/doku.php?id=freebsd:index
I get the following panic when creating a jail:
panic: mutex allprison not owned at ../../../kern/kern_jail.c:374
cpuid = 1
KDB: enter: panic
[thread pid 930 tid 106142 ]
Stopped at kdb_enter+0x32: leave
db> wh
Tracing pid 930 tid 106142 td 0xd30841b0
kdb_enter(c0756d95,1,c0755e9c,f17c9b80,d30841b0,...) at kdb_enter+0x32
panic(c0755e9c,c075431c,c0754331,176,1,...) at panic+0x1b1
_mtx_unlock_spin_flags(c07c6214,1,c0754331,176,0,...) at _mtx_unlock_spin_flags
prison_find(1,0,0,d30841b0,c5bb9800,...) at prison_find+0x2e
jail_attach(d30841b0,f17c9bf0,c0754331,9f,c5bb992c,...) at jail_attach+0x38
jail(d30841b0,f17c9d04,4,f17c9d38,1,...) at jail+0x3b5
syscall(3b,3b,3b,bfbfe8c0,bfbfe904,...) at syscall+0x152
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (338, FreeBSD ELF32, jail), eip = 0x280d1ee7, esp = 0xbfbfe3ac, ebp = 0xbfbfe888 ---
930 545 544 0 R CPU 1 jail
Kris
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: jail2 patchset 12
- From: John Baldwin
- Re: jail2 patchset 12
- From: Kris Kennaway
- Re: jail2 patchset 12
- References:
- jail2 patchset 12
- From: Alex Lyashkov
- Re: jail2 patchset 12
- From: Kris Kennaway
- jail2 patchset 12
- Prev by Date: Re: jail2 patchset 12
- Next by Date: Re: jail2 patchset 12
- Previous by thread: Re: jail2 patchset 12
- Next by thread: Re: jail2 patchset 12
- Index(es):
Relevant Pages
|
|