util-vserver.git
15 years agoHandle read-only bind-mounts the new way.
Daniel Hokka Zakrisson [Mon, 25 Aug 2008 21:57:57 +0000]
Handle read-only bind-mounts the new way.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2774 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoIf /proc/sys is inaccessible, assume there are no settings.
Daniel Hokka Zakrisson [Mon, 25 Aug 2008 21:11:32 +0000]
If /proc/sys is inaccessible, assume there are no settings.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2773 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoFix the vps output when a guest fails to stops nicely.
Daniel Hokka Zakrisson [Sun, 24 Aug 2008 23:37:51 +0000]
Fix the vps output when a guest fails to stops nicely.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2772 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agocgroup support.
Daniel Hokka Zakrisson [Sun, 24 Aug 2008 20:12:08 +0000]
cgroup support.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2771 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoIf $3 is set, the run file is expected to be cleaned up if the context does
Daniel Hokka Zakrisson [Sun, 24 Aug 2008 20:09:08 +0000]
If $3 is set, the run file is expected to be cleaned up if the context does
not exist. Fix the previous change to handle this correctly.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2770 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoWork with builds done in a separate directory.
Daniel Hokka Zakrisson [Sun, 24 Aug 2008 20:06:52 +0000]
Work with builds done in a separate directory.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2769 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agof9
Daniel Hokka Zakrisson [Sun, 24 Aug 2008 03:11:11 +0000]
f9

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2768 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoRemove the run file if the build fails.
Daniel Hokka Zakrisson [Sun, 24 Aug 2008 02:47:27 +0000]
Remove the run file if the build fails.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2767 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoRevert the atexit, as it appears to cause more problems, while not solving any.
Daniel Hokka Zakrisson [Sun, 24 Aug 2008 02:47:02 +0000]
Revert the atexit, as it appears to cause more problems, while not solving any.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2766 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoWorkaround rpm-fake brokenness by setting up a persistent context.
Daniel Hokka Zakrisson [Fri, 22 Aug 2008 21:41:47 +0000]
Workaround rpm-fake brokenness by setting up a persistent context.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2765 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoThis is a requirement for vc_getVserverCtx, so it should be a requirement in the...
Daniel Hokka Zakrisson [Fri, 22 Aug 2008 21:41:22 +0000]
This is a requirement for vc_getVserverCtx, so it should be a requirement in the scripts.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2764 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoRemove the runfile, if it exists.
Daniel Hokka Zakrisson [Fri, 22 Aug 2008 21:39:27 +0000]
Remove the runfile, if it exists.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2763 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoAdd PERSISTENT feature.
Daniel Hokka Zakrisson [Fri, 22 Aug 2008 21:01:58 +0000]
Add PERSISTENT feature.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2762 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoPid namespaces will come in 0x00020304.
Daniel Hokka Zakrisson [Fri, 22 Aug 2008 20:57:58 +0000]
Pid namespaces will come in 0x00020304.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2761 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoUmm, what?
Daniel Hokka Zakrisson [Fri, 22 Aug 2008 20:32:26 +0000]
Umm, what?

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2760 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoFix silly typo.
Daniel Hokka Zakrisson [Thu, 21 Aug 2008 19:21:44 +0000]
Fix silly typo.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2759 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agochmod makes no sense for a symlink.
Daniel Hokka Zakrisson [Thu, 21 Aug 2008 18:05:32 +0000]
chmod makes no sense for a symlink.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2758 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoPid namespace support will be available in 0x00020304.
Daniel Hokka Zakrisson [Thu, 21 Aug 2008 17:57:33 +0000]
Pid namespace support will be available in 0x00020304.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2757 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoSince using a destructor doesn't seem to work all that well, try using atexit instead.
Daniel Hokka Zakrisson [Thu, 21 Aug 2008 17:57:06 +0000]
Since using a destructor doesn't seem to work all that well, try using atexit instead.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2756 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoMake it easier to add rsync arguments.
Daniel Hokka Zakrisson [Thu, 21 Aug 2008 17:56:16 +0000]
Make it easier to add rsync arguments.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2755 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agof9...
Daniel Hokka Zakrisson [Thu, 7 Aug 2008 19:44:32 +0000]
f9...

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2754 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agorsyslog is in Debian too.
Daniel Hokka Zakrisson [Sat, 2 Aug 2008 13:49:34 +0000]
rsyslog is in Debian too.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2753 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoprint yum.__version__ instead of executing "yum --version" which is very heavyweighte...
Enrico Scholz [Fri, 1 Aug 2008 10:19:21 +0000]
print yum.__version__ instead of executing "yum --version" which is very heavyweighted in recent versions and gives out additional informations confusing the parser

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2752 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoAdd the /dev/fd symlink that is expected by more and more things.
Daniel Hokka Zakrisson [Mon, 28 Jul 2008 21:44:19 +0000]
Add the /dev/fd symlink that is expected by more and more things.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2751 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoInstall initctl file.
Daniel Hokka Zakrisson [Fri, 18 Jul 2008 14:29:28 +0000]
Install initctl file.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2750 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoBe silent if it's not a Linux-VServer kernel.
Daniel Hokka Zakrisson [Thu, 17 Jul 2008 14:53:03 +0000]
Be silent if it's not a Linux-VServer kernel.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2749 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoThis is not an option used by the utils, but the semantics are for filesystem namespaces.
Daniel Hokka Zakrisson [Tue, 15 Jul 2008 22:16:01 +0000]
This is not an option used by the utils, but the semantics are for filesystem namespaces.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2748 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoUse sys_clone in Eclone.
Daniel Hokka Zakrisson [Tue, 15 Jul 2008 22:14:13 +0000]
Use sys_clone in Eclone.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2747 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoAdd exec-remount.
Daniel Hokka Zakrisson [Mon, 14 Jul 2008 20:26:41 +0000]
Add exec-remount.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2746 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoSupport building against nss by using --without beecrypt.
Daniel Hokka Zakrisson [Mon, 14 Jul 2008 20:26:28 +0000]
Support building against nss by using --without beecrypt.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2745 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoAdd new 0x00020303 API, using pid namespaces.
Daniel Hokka Zakrisson [Mon, 14 Jul 2008 20:09:00 +0000]
Add new 0x00020303 API, using pid namespaces.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2744 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoAdd exec-remount.
Daniel Hokka Zakrisson [Mon, 14 Jul 2008 14:15:13 +0000]
Add exec-remount.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2743 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoAdd exitlikeprocess.c.
Daniel Hokka Zakrisson [Mon, 14 Jul 2008 14:12:02 +0000]
Add exitlikeprocess.c.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2742 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoAdd SPACES feature.
Daniel Hokka Zakrisson [Mon, 14 Jul 2008 14:10:59 +0000]
Add SPACES feature.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2741 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoDocument ionice options.
Daniel Hokka Zakrisson [Mon, 14 Jul 2008 14:09:51 +0000]
Document ionice options.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2740 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoMove exitLikeProcess to libvserver.
Daniel Hokka Zakrisson [Mon, 14 Jul 2008 13:12:25 +0000]
Move exitLikeProcess to libvserver.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2739 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoSilence warnings.
Daniel Hokka Zakrisson [Mon, 14 Jul 2008 13:09:44 +0000]
Silence warnings.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2738 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoEscape >.
Daniel Hokka Zakrisson [Mon, 14 Jul 2008 12:55:46 +0000]
Escape >.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2737 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoMerge ionice patch (originally from anonc, updated for newer util-vserver by cehteh).
Daniel Hokka Zakrisson [Sun, 13 Jul 2008 17:51:18 +0000]
Merge ionice patch (originally from anonc, updated for newer util-vserver by cehteh).

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2736 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoexec-remount remounts proc and sys, to get the right namespaces associated with them.
Daniel Hokka Zakrisson [Sun, 13 Jul 2008 17:34:35 +0000]
exec-remount remounts proc and sys, to get the right namespaces associated with them.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2735 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoTeach vprocunhide about --write.
Daniel Hokka Zakrisson [Sun, 13 Jul 2008 16:00:29 +0000]
Teach vprocunhide about --write.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2734 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoprctl does not work as well as this. Revert changeset 2731.
Daniel Hokka Zakrisson [Fri, 11 Jul 2008 15:24:03 +0000]
prctl does not work as well as this. Revert changeset 2731.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2733 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoAdd support for IATTR_WRITE.
Daniel Hokka Zakrisson [Fri, 11 Jul 2008 15:20:35 +0000]
Add support for IATTR_WRITE.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2732 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoUse prctl(PR_SET_NAME) instead.
Daniel Hokka Zakrisson [Thu, 10 Jul 2008 18:06:00 +0000]
Use prctl(PR_SET_NAME) instead.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2731 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoCorrectly unmount NFS and other "special" filesystems.
Daniel Hokka Zakrisson [Tue, 8 Jul 2008 15:51:45 +0000]
Correctly unmount NFS and other "special" filesystems.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2730 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoOrder the scriptlets logically.
Daniel Hokka Zakrisson [Tue, 8 Jul 2008 15:11:09 +0000]
Order the scriptlets logically.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2729 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoRevert changeset 2726. Needs #ifdef magic.
Daniel Hokka Zakrisson [Tue, 8 Jul 2008 14:08:24 +0000]
Revert changeset 2726. Needs #ifdef magic.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2728 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoDon't fail.
Daniel Hokka Zakrisson [Tue, 8 Jul 2008 14:07:42 +0000]
Don't fail.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2727 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoWorkaround broken headers.
Daniel Hokka Zakrisson [Sun, 6 Jul 2008 23:58:46 +0000]
Workaround broken headers.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2726 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoUnify_copy doesn't touch sockets, so there's nothing to change the tag of.
Daniel Hokka Zakrisson [Sun, 6 Jul 2008 23:58:22 +0000]
Unify_copy doesn't touch sockets, so there's nothing to change the tag of.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2725 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoNew debootstrap.
Daniel Hokka Zakrisson [Wed, 2 Jul 2008 17:10:39 +0000]
New debootstrap.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2724 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoUse 64-bit counters for the memory usage, to avoid easy overflows.
Daniel Hokka Zakrisson [Mon, 30 Jun 2008 20:25:46 +0000]
Use 64-bit counters for the memory usage, to avoid easy overflows.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2723 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoAdd persistdir for centos5 and make sure the syslog daemon is enabled.
Daniel Hokka Zakrisson [Sun, 29 Jun 2008 15:42:31 +0000]
Add persistdir for centos5 and make sure the syslog daemon is enabled.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2722 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoGet rid of the etch directory for older installs.
Daniel Hokka Zakrisson [Thu, 26 Jun 2008 15:59:54 +0000]
Get rid of the etch directory for older installs.
Hopefully all interesting RPM versions support %check by now... Mandriva's rpm does not support the || : syntax.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2721 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoAdd operations needed by Fedora 9 tweaks.
Daniel Hokka Zakrisson [Tue, 17 Jun 2008 16:16:47 +0000]
Add operations needed by Fedora 9 tweaks.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2720 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoFedora 9 support.
Daniel Hokka Zakrisson [Tue, 17 Jun 2008 16:15:19 +0000]
Fedora 9 support.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2719 94cd875c-1c1d-0410-91d2-eb244daf1a30

15 years agoOn failure, mmap returns MAP_FAILED, not 0.
Daniel Hokka Zakrisson [Mon, 16 Jun 2008 11:32:49 +0000]
On failure, mmap returns MAP_FAILED, not 0.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2718 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoAvoid that annoying "uses 32-bit capabilities (legacy support in use)" warning.
Daniel Hokka Zakrisson [Sat, 3 May 2008 17:00:14 +0000]
Avoid that annoying "uses 32-bit capabilities (legacy support in use)" warning.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2717 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoAdd pid space feature.
Daniel Hokka Zakrisson [Sat, 3 May 2008 16:53:45 +0000]
Add pid space feature.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2716 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoFix typo.
Daniel Hokka Zakrisson [Sat, 3 May 2008 16:48:56 +0000]
Fix typo.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2715 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoFix typo.
Daniel Hokka Zakrisson [Fri, 2 May 2008 22:44:57 +0000]
Fix typo.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2714 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoCLONE_FS is just for the Linux-VServer syscalls.
Daniel Hokka Zakrisson [Tue, 29 Apr 2008 17:47:50 +0000]
CLONE_FS is just for the Linux-VServer syscalls.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2713 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agofix functions.sh location for gentoo; create /lib/rc/sh for older stages that don...
Benedikt Boehm [Sun, 13 Apr 2008 10:13:47 +0000]
fix functions.sh location for gentoo; create /lib/rc/sh for older stages that don't have it

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2712 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoAdd all the ioctls to work on older kernels too.
Daniel Hokka Zakrisson [Wed, 2 Apr 2008 18:59:00 +0000]
Add all the ioctls to work on older kernels too.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2711 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoDon't call free on stack pointers.
Daniel Hokka Zakrisson [Wed, 2 Apr 2008 18:58:37 +0000]
Don't call free on stack pointers.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2710 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoAdd support to be able to configure the peer too.
Daniel Hokka Zakrisson [Wed, 2 Apr 2008 18:58:18 +0000]
Add support to be able to configure the peer too.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2709 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoSupport 0.0.0.0 for 2.3 kernels.
Daniel Hokka Zakrisson [Wed, 26 Mar 2008 22:22:26 +0000]
Support 0.0.0.0 for 2.3 kernels.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2708 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoVersion 0.30.215.
Daniel Hokka Zakrisson [Mon, 17 Mar 2008 08:59:37 +0000]
Version 0.30.215.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2706 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoAdd the new flags.
Daniel Hokka Zakrisson [Mon, 17 Mar 2008 08:55:11 +0000]
Add the new flags.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2705 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoFix vserver ... stop --rescue-init.
Daniel Hokka Zakrisson [Sun, 16 Mar 2008 03:30:22 +0000]
Fix vserver ... stop --rescue-init.
Use it in stopSleepingGuest, to prevent races and to do proper cleanup.
If vserver ... stop has already been invoked, remove SC_HELPER from the context.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2704 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoAdd some examples.
Daniel Hokka Zakrisson [Sat, 15 Mar 2008 16:05:49 +0000]
Add some examples.
Disallow combinations that make no sense.
Allow defaults to be set.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2703 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agofix openrc startup; only fix inittab in plain initstyle
Benedikt Boehm [Tue, 11 Mar 2008 10:07:26 +0000]
fix openrc startup; only fix inittab in plain initstyle

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2702 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agobash doesn't execute traps until after the current job has finished executing, so...
Daniel Hokka Zakrisson [Mon, 10 Mar 2008 22:41:04 +0000]
bash doesn't execute traps until after the current job has finished executing, so run sleep in a loop.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2701 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoA kernel without IPv6-support will return ENOSYS for vc_net_remove_ipv6.
Daniel Hokka Zakrisson [Mon, 10 Mar 2008 19:59:18 +0000]
A kernel without IPv6-support will return ENOSYS for vc_net_remove_ipv6.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2700 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoadd openrc support to gentoo/initpost
Benedikt Boehm [Wed, 5 Mar 2008 15:46:31 +0000]
add openrc support to gentoo/initpost

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2699 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoWorkaround kernel oddities.
Daniel Hokka Zakrisson [Sun, 2 Mar 2008 14:04:29 +0000]
Workaround kernel oddities.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2698 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoInclude attribute-util.h in the tarball.
Daniel Hokka Zakrisson [Sat, 1 Mar 2008 01:24:07 +0000]
Include attribute-util.h in the tarball.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2697 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agolockf(F_LOCK) requests a write lock, which requires the file to be open in write...
Daniel Hokka Zakrisson [Sat, 1 Mar 2008 01:20:42 +0000]
lockf(F_LOCK) requests a write lock, which requires the file to be open in write mode.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2696 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoRemove unused variable.
Daniel Hokka Zakrisson [Sat, 1 Mar 2008 01:15:31 +0000]
Remove unused variable.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2695 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoFactor out bitfield-to-string code to src/attribute-util.h.
Daniel Hokka Zakrisson [Sat, 1 Mar 2008 01:07:49 +0000]
Factor out bitfield-to-string code to src/attribute-util.h.
Add --get for nattribute too.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2694 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoRevert commit 2690, clone is needed for pid namespaces and on kernels <2.6.16.
Daniel Hokka Zakrisson [Sat, 1 Mar 2008 00:26:31 +0000]
Revert commit 2690, clone is needed for pid namespaces and on kernels <2.6.16.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2693 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoAdd basic support for creating tun/tap interfaces in the configuration.
Daniel Hokka Zakrisson [Sat, 1 Mar 2008 00:22:34 +0000]
Add basic support for creating tun/tap interfaces in the configuration.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2692 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agouse ! instead of ~ to avoid shell expansion
Enrico Scholz [Fri, 29 Feb 2008 22:16:07 +0000]
use ! instead of ~ to avoid shell expansion

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2691 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agouse unshare(CLONE_NEWNS) instead of a complicated 'clone(NEWNS) ... waitpid()' operation
Enrico Scholz [Fri, 29 Feb 2008 13:29:27 +0000]
use unshare(CLONE_NEWNS) instead of a complicated 'clone(NEWNS) ... waitpid()' operation

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2690 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agouse hostspecific Build directory
Enrico Scholz [Fri, 29 Feb 2008 13:27:58 +0000]
use hostspecific Build directory

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2689 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoSet persist last, this way, no interface is left behind if one of the ioctls fail.
Daniel Hokka Zakrisson [Thu, 28 Feb 2008 23:54:32 +0000]
Set persist last, this way, no interface is left behind if one of the ioctls fail.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2688 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoAdd tunctl.
Daniel Hokka Zakrisson [Thu, 28 Feb 2008 23:28:31 +0000]
Add tunctl.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2687 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoAvoid pointer/integer conversion warning on LP64.
Daniel Hokka Zakrisson [Thu, 28 Feb 2008 23:12:06 +0000]
Avoid pointer/integer conversion warning on LP64.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2686 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoadded support for using libnss instead of beecrypt for vhashify's
Enrico Scholz [Thu, 21 Feb 2008 23:22:23 +0000]
added support for using libnss instead of beecrypt for vhashify's
hash calculation.  libnss has bad SHA1 performance on i386, but is a)
maintained and b) gives better performance with all other hashes and
on x86_64.

I am just waiting for somebody to write the OpenSSL layer so that I
can try the padlock hardware crypto device on my C7 ;)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2685 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoadded h2ext-worker to OPTIONS_PREEMPT list
Enrico Scholz [Thu, 21 Feb 2008 23:11:45 +0000]
added h2ext-worker to OPTIONS_PREEMPT list

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2684 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agofixed CPPFLAGS quoting problems introduced by last commit
Enrico Scholz [Thu, 21 Feb 2008 23:11:19 +0000]
fixed CPPFLAGS quoting problems introduced by last commit

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2683 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agofixed endless loop when no '--' is given
Enrico Scholz [Thu, 21 Feb 2008 23:10:34 +0000]
fixed endless loop when no '--' is given
fixed --help/--version handling

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2682 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoadded code to enable i386 builds on x86_64 platforms
Enrico Scholz [Thu, 21 Feb 2008 22:34:40 +0000]
added code to enable i386 builds on x86_64 platforms
added $CONFIGURE_FLAGS configuration env
set LDFLAGS

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2681 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agofixed unused param + unsigned/signed mismatch warning
Enrico Scholz [Thu, 21 Feb 2008 22:33:21 +0000]
fixed unused param + unsigned/signed mismatch warning

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2680 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agofixed
Enrico Scholz [Thu, 21 Feb 2008 22:32:50 +0000]
fixed

| src/vspace.c:177: warning: passing argument 2 of 'isNumberUnsigned' from incompatible pointer type

warning

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2679 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoUse lockf instead of flock, the former works on NFS.
Daniel Hokka Zakrisson [Sat, 16 Feb 2008 22:09:30 +0000]
Use lockf instead of flock, the former works on NFS.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2678 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoDisable VXF_SC_HELPER for rpm-fake created contexts.
Daniel Hokka Zakrisson [Thu, 14 Feb 2008 19:28:50 +0000]
Disable VXF_SC_HELPER for rpm-fake created contexts.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2677 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoSet the barrier and warn if it could not be set automatically.
Daniel Hokka Zakrisson [Mon, 11 Feb 2008 23:41:08 +0000]
Set the barrier and warn if it could not be set automatically.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2676 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoWe only want to wait on the context if we created it.
Daniel Hokka Zakrisson [Sat, 9 Feb 2008 00:27:46 +0000]
We only want to wait on the context if we created it.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2675 94cd875c-1c1d-0410-91d2-eb244daf1a30

16 years agoAdd missing svn:keywords.
Daniel Hokka Zakrisson [Sun, 27 Jan 2008 07:55:13 +0000]
Add missing svn:keywords.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2674 94cd875c-1c1d-0410-91d2-eb244daf1a30