<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://linux-vserver.at/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://linux-vserver.at/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Loic</id>
		<title>Linux-VServer - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://linux-vserver.at/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Loic"/>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Special:Contributions/Loic"/>
		<updated>2026-04-10T02:17:40Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://linux-vserver.at/util-vserver:Capabilities_and_Flags</id>
		<title>util-vserver:Capabilities and Flags</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/util-vserver:Capabilities_and_Flags"/>
				<updated>2008-01-05T12:50:35Z</updated>
		
		<summary type="html">&lt;p&gt;Loic: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page discusses how to set capabilities and flags for a util-vserver guest. Also check http://www.nongnu.org/util-vserver/doc/conf/configuration.html for additional information.&lt;br /&gt;
A couple of general rules applies to all of the files described on this page:&lt;br /&gt;
* The filenames are all relative to the guest's configuration directory, which typically is &amp;lt;code&amp;gt;/etc/vservers/&amp;lt;em&amp;gt;&amp;lt;guest&amp;gt;&amp;lt;/em&amp;gt;&amp;lt;/code&amp;gt; but by default &amp;lt;code&amp;gt;/usr/local/etc/vservers/&amp;lt;em&amp;gt;&amp;lt;guest&amp;gt;&amp;lt;/em&amp;gt;&amp;lt;/code&amp;gt; when built from source.&lt;br /&gt;
* One capability/flag per line&lt;br /&gt;
* To remove something set by default, prefix it with ~, for instance:&lt;br /&gt;
 echo ~SET_UTSNAME &amp;gt;&amp;gt; ccapabilities&lt;br /&gt;
* Comments can be added with #:&lt;br /&gt;
 echo \# Disable utsname configuration &amp;gt;&amp;gt; ccapabilities&lt;br /&gt;
* To set a specific bit which does not yet have a name in util-vserver, you can use the following notation to set bit 6:&lt;br /&gt;
 echo ^6 &amp;gt;&amp;gt; ncapabilities&lt;br /&gt;
&lt;br /&gt;
=== Setting context capabilities (ccaps) ===&lt;br /&gt;
* Add the capabilities to a file named &amp;lt;code&amp;gt;ccapabilities&amp;lt;/code&amp;gt;:&lt;br /&gt;
 echo SYSLOG &amp;gt;&amp;gt; ccapabilities&lt;br /&gt;
* The default ccaps are:&lt;br /&gt;
 SET_UTSNAME&lt;br /&gt;
 RAW_ICMP&lt;br /&gt;
&lt;br /&gt;
=== Setting context flags (cflags) ===&lt;br /&gt;
* Add the flags to a file named &amp;lt;code&amp;gt;flags&amp;lt;/code&amp;gt;:&lt;br /&gt;
 echo VIRT_MEM &amp;gt;&amp;gt; flags&lt;br /&gt;
* The default cflags are (in addition to the defaults set by the kernel):&lt;br /&gt;
 HIDE_NETIF&lt;br /&gt;
&lt;br /&gt;
=== Setting network flags (nflags) ===&lt;br /&gt;
* Add the flags to a file named &amp;lt;code&amp;gt;nflags&amp;lt;/code&amp;gt;:&lt;br /&gt;
 echo HIDE_NETIF &amp;gt;&amp;gt; nflags&lt;br /&gt;
* The default nflags are:&lt;br /&gt;
 HIDE_NETIF&lt;br /&gt;
&lt;br /&gt;
=== Setting POSIX capabilities (bcaps) ===&lt;br /&gt;
* Add the capabilities to a file named &amp;lt;code&amp;gt;bcapabilities&amp;lt;/code&amp;gt;:&lt;br /&gt;
 echo CHOWN &amp;gt;&amp;gt; bcapabilities&lt;br /&gt;
* The default bcaps are:&lt;br /&gt;
 CHOWN&lt;br /&gt;
 DAC_OVERRIDE&lt;br /&gt;
 DAC_READ_SEARCH&lt;br /&gt;
 FOWNER&lt;br /&gt;
 FSETID&lt;br /&gt;
 KILL&lt;br /&gt;
 SETGID&lt;br /&gt;
 SETUID&lt;br /&gt;
 NET_BIND_SERVICE&lt;br /&gt;
 SYS_CHROOT&lt;br /&gt;
 SYS_PTRACE&lt;br /&gt;
 SYS_BOOT&lt;br /&gt;
 SYS_TTY_CONFIG&lt;br /&gt;
 LEASE&lt;br /&gt;
 AUDIT_WRITE&lt;br /&gt;
&lt;br /&gt;
=== Setting network capabilities (ncaps) ===&lt;br /&gt;
* Add the capabilities to a file named &amp;lt;code&amp;gt;ncapabilities&amp;lt;/code&amp;gt;:&lt;br /&gt;
 echo ^12 &amp;gt;&amp;gt; ncapabilities&lt;br /&gt;
* There are no default ncaps.&lt;/div&gt;</summary>
		<author><name>Loic</name></author>	</entry>

	</feed>