Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Starting bind in vserver enviroment
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
asm
n00b
n00b


Joined: 10 Nov 2005
Posts: 1

PostPosted: Thu Nov 10, 2005 11:30 pm    Post subject: [TIP] Starting bind in vserver enviroment Reply with quote

It's quite simple.

Make an file named bcapabilities in /etc/vservers/<vserver name>

Example:
Code:
nano /etc/vservers/ns/bcapabilities


Then add the following line into it:
Code:
CAP_SYS_RESOURCE


Save (Ctrl-X in nano) and restart with:
Code:
vserver <vserver name> restart


This capability actually gives the virtual host the following permisions:
Quote:
The CAP_SYS_RESOURCE capability

* Override resource limits. Set resource limits.
* Override quota limits.
* Override reserved space on ext2 filesystem
* NOTE: ext2 honors fsuid when checking for resource overrides, so you can override using fsuid too
* Override size restrictions on IPC message queues
* Allow more than 64hz interrupts from the real-time clock
* Override max number of consoles on console allocation
* Override max number of keymaps



Remarks:
* tested with vserver-sources 2.6.14-vserver-2.0.1
* tested with bind 9.3.1 and 9.3.2_beta2
* tested with threads enabled in bind

P.S.:
tip seen in linux-vserver.org mailing list
Full list of linux capabilities can be found here:
http://www.lids.org/lids-howto/node34.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum