The user namespace, which is a important piece of Linux containers, has been merged into the mainline of the kernel since 3.8. However, it implementation is still incomplete for some components of the kernel. Hence, to enable the feature we need to disable some features: network filesystems and XFS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cgutil tree -t -k --show-autogroup | |
<root> | |
+test | |
+system | |
| +sm-client.service | |
| | `sendmail | |
| +sendmail.service | |
| | `sendmail | |
| +vboxadd-service.service | |
| | `VBoxService |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff v0.3..v0.4 | |
.gitignore | 4 + | |
Changelog | 14 ++++ | |
Changelog.md | 10 +++ | |
README | 195 ++++++++++++++++++++++++++++++++++++++++++++++++- | |
README.md | 30 +++++--- | |
README.rst | 180 --------------------------------------------- | |
cgutils/cgroup.py | 449 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------- | |
cgutils/command.py | 11 +-- | |
cgutils/commands/__init__.py | 2 + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git | |
$ cd linux/ | |
$ git status | |
# On branch master | |
# Changes not staged for commit: | |
# (use "git add <file>..." to update what will be committed) | |
# (use "git checkout -- <file>..." to discard changes in working directory) | |
# | |
# modified: include/uapi/linux/netfilter/xt_CONNMARK.h | |
# modified: include/uapi/linux/netfilter/xt_DSCP.h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# x86_64 | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86_64 3.7.4-204.vbox.fc18.x86_64 Kernel Configuration | |
# | |
CONFIG_64BIT=y | |
CONFIG_X86_64=y | |
CONFIG_X86=y | |
CONFIG_INSTRUCTION_DECODER=y | |
CONFIG_OUTPUT_FORMAT="elf64-x86-64" | |
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo aptitude install autoconf | |
sudo aptitude install libtool | |
sudo aptitude install libcap-ng-dev | |
sudo aptitude install libvirt-glib-1.0-dev | |
sudo aptitude install libglib2.0-dev | |
sudo aptitude install libglib2.0 | |
sudo aptitude install libxml2-dev | |
sudo aptitude install libselinux-dev | |
sudo aptitude install gtk-doc-tools | |
sudo aptitude install libvirt-bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# x86_64 | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86_64 3.8.2 Kernel Configuration | |
# | |
CONFIG_64BIT=y | |
CONFIG_X86_64=y | |
CONFIG_X86=y | |
CONFIG_INSTRUCTION_DECODER=y | |
CONFIG_OUTPUT_FORMAT="elf64-x86-64" | |
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# x86_64 | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86_64 3.8.3-201.vbox.fc18.x86_64 Kernel Configuration | |
# | |
CONFIG_64BIT=y | |
CONFIG_X86_64=y | |
CONFIG_X86=y | |
CONFIG_INSTRUCTION_DECODER=y | |
CONFIG_OUTPUT_FORMAT="elf64-x86-64" | |
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- vboxsf/utils.c.orig 2013-03-19 01:32:18.189109241 +0900 | |
+++ vboxsf/utils.c 2013-03-19 01:38:19.403778661 +0900 | |
@@ -144,8 +144,13 @@ | |
#endif | |
} | |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) && defined(CONFIG_UIDGID_CONVERTED) | |
+ inode->i_uid = make_kuid(&init_user_ns, sf_g->uid); | |
+ inode->i_gid = make_kgid(&init_user_ns, sf_g->gid); | |
+#else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vmware-tools] | |
name=VMware Tools for Red Hat Enterprise Linux $releasever – $basearch | |
baseurl=http://packages.vmware.com/tools/esx/latest/rhel6/$basearch | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub |