Re: limit jail disk space
From: Jone Jas (jas_arlerr_at_yahoo.com.cn)
Date: 07/13/05
- Previous message: Jone Jas: "Re: limit jail disk space"
- In reply to: Vlad GALU: "Re: limit jail disk space"
- Next in thread: Dominic Marks: "Re: limit jail disk space"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 13 Jul 2005 21:34:43 +0800 (CST) To: Vlad GALU <vladgalu@gmail.com>
Vlad GALU <vladgalu@gmail.com> 写道:
> Sure. The tools may control all limits such as cpu time, >memory, bandwidth, disk space, etc. I have read the Linux >VServer dlimit code. But I am not very sure where to put the >hooks for inode/blocks control of jail in FreeBSD. This is why I >open this thread. Vlad GALU said I can look to the quota >method. I will try. Thanks.
>It will most probably be tricky, because you can practically >have the same uid in both worlds (the host and the jail) with >different quota settings mapped to it. So upon granting fs >resources you'd have to check which 'world' the request came >from. If the quota for that world isn't overdue, you check for >that uid's quota inside that world and if that's still OK you >grant the resource.
If we use different start number for users in jails and in the host as said on some wikis (i.e., increase the start uid for jail users), the different quota mapping will not be confused.
>You will probably have to add an extra member to the prison >structure, to hold the global quota for that jail.
Yes, I do think so.
---------------------------------
DO YOU YAHOO!?
雅虎邮箱超强增值服务-2G超大空间、pop3收信、无限量邮件提醒
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Jone Jas: "Re: limit jail disk space"
- In reply to: Vlad GALU: "Re: limit jail disk space"
- Next in thread: Dominic Marks: "Re: limit jail disk space"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|