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 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 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 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 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 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 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 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
[fedora17 cgroup-utils]$ cgutil pgrep systemd | |
/: 1 | |
/system/systemd-logind.service: 576 | |
/system/systemd-journald.service: 359 | |
[fedora17 cgroup-utils]$ cgutil pgrep systemd -l -f | |
/: 1 /usr/lib/systemd/systemd | |
/: 1321 /bin/python /bin/cgutil pgrep systemd -l -f | |
/system/systemd-logind.service: 576 /usr/lib/systemd/systemd-logind | |
/system/dbus.service: 607 /bin/dbus-daemon --system --address=systemd: --nofork --systemd-activation | |
/system/systemd-journald.service: 359 /usr/lib/systemd/systemd-journald |
This file contains 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
obj-m = cgroup-notifier-counter.o | |
KVERSION = $(shell uname -r) | |
all: | |
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean |
This file contains 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
/* store a bundle */ | |
Bundle bundle = // get a bundle from somewhere | |
final Parcel parcel = Parcel.obtain(); | |
bundle.writeToParcel(parcel, 0); | |
byte[] bundleBytes = parcel.marshall(); | |
parcel.recycle(); | |
ContentValues values = new ContentValues(); | |
values.put("bundle", bundleBytes); | |
SQLiteDatabase db = // create a db object |