Editing
Util-vserver:Capabilities and Flags
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
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. A couple of general rules applies to all of the files described on this page: * The filenames are all relative to the guest's configuration directory, which typically is <code>/etc/vservers/<em><guest></em></code> but by default <code>/usr/local/etc/vservers/<em><guest></em></code> when built from source. * One capability/flag per line * To remove something set by default, prefix it with ~, for instance: echo ~SET_UTSNAME >> ccapabilities * Comments can be added with #: echo \# Disable utsname configuration >> ccapabilities * 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: echo ^6 >> ncapabilities === Setting context capabilities (ccaps) === * Add the capabilities to a file named <code>ccapabilities</code>: echo SYSLOG >> ccapabilities * The default ccaps are: SET_UTSNAME RAW_ICMP === Setting context flags (cflags) === * Add the flags to a file named <code>flags</code>: echo VIRT_MEM >> flags * The default cflags are (in addition to the defaults set by the kernel): HIDE_NETIF === Setting network flags (nflags) === * Add the flags to a file named <code>nflags</code>: echo HIDE_NETIF >> nflags * The default nflags are: HIDE_NETIF === Setting POSIX capabilities (bcaps) === * Add the capabilities to a file named <code>bcapabilities</code>: echo CHOWN >> bcapabilities * The default bcaps are: CHOWN DAC_OVERRIDE DAC_READ_SEARCH FOWNER FSETID KILL SETGID SETUID NET_BIND_SERVICE SYS_CHROOT SYS_PTRACE SYS_BOOT SYS_TTY_CONFIG LEASE AUDIT_WRITE === Setting network capabilities (ncaps) === * Add the capabilities to a file named <code>ncapabilities</code>: echo ^12 >> ncapabilities * There are no default ncaps. === Modify flags without restarting the vservers === If you would like to edit those flags without restarting the vservers, you can use vattribute and nattribute. See [[util-vserver:Cheatsheet]] [[Category:Configuration]]
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information