util-vserver.git
17 years agoadded patch for yum-3.0.3
Enrico Scholz [Thu, 18 Jan 2007 07:56:35 +0000]
added patch for yum-3.0.3

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

17 years agoRemove the disk limits after saving them.
Daniel Hokka Zakrisson [Thu, 18 Jan 2007 04:38:30 +0000]
Remove the disk limits after saving them.

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

17 years agoAdd VC_VXSM_MSEC.
Daniel Hokka Zakrisson [Wed, 17 Jan 2007 09:56:43 +0000]
Add VC_VXSM_MSEC.

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

17 years agoUse VCMD_set_sched_v4 as intended.
Daniel Hokka Zakrisson [Wed, 17 Jan 2007 09:56:23 +0000]
Use VCMD_set_sched_v4 as intended.

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

17 years agoRemove the dietlibc sanity check function, as what it's doing is already done elsewhere.
Daniel Hokka Zakrisson [Wed, 17 Jan 2007 09:54:53 +0000]
Remove the dietlibc sanity check function, as what it's doing is already done elsewhere.

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

17 years agofix missing world target in vupdateworld
Benedikt Boehm [Sun, 14 Jan 2007 12:30:02 +0000]
fix missing world target in vupdateworld

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

17 years agoTeach the spec how to build prereleases and release candidates.
Daniel Hokka Zakrisson [Wed, 10 Jan 2007 22:23:39 +0000]
Teach the spec how to build prereleases and release candidates.

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

17 years agoThe new method doesn't need to be a spectator, and /proc/virtual isn't available...
Daniel Hokka Zakrisson [Wed, 10 Jan 2007 19:27:56 +0000]
The new method doesn't need to be a spectator, and /proc/virtual isn't available there by default.

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

17 years agoAdd vc_sched_info API.
Daniel Hokka Zakrisson [Wed, 10 Jan 2007 18:53:07 +0000]
Add vc_sched_info API.
Make vserver-stat use the various APIs instead of parsing per-process /proc entries.

vc_virt_stat.uptime is a uint64_t.
vc_get_dlimit can handle a NULL limits argument.

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

17 years agoThere is no vc_create_context. Stop referencing it.
Daniel Hokka Zakrisson [Wed, 10 Jan 2007 18:49:13 +0000]
There is no vc_create_context. Stop referencing it.

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

17 years agoRemove persistent on stop.
Daniel Hokka Zakrisson [Wed, 10 Jan 2007 11:52:06 +0000]
Remove persistent on stop.

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

17 years agoCheck if dietlibc declares syscall incompatibly, to avoid errors.
Daniel Hokka Zakrisson [Tue, 9 Jan 2007 13:22:11 +0000]
Check if dietlibc declares syscall incompatibly, to avoid errors.
Move the syscall declaration to lib/syscall-wrap.h.

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

17 years agoFix output.
Daniel Hokka Zakrisson [Sun, 7 Jan 2007 22:27:21 +0000]
Fix output.

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

17 years agoSupport legacy guests on 2.6 kernels as well.
Daniel Hokka Zakrisson [Wed, 3 Jan 2007 11:55:04 +0000]
Support legacy guests on 2.6 kernels as well.

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

17 years agoThe CHBIND_OPTS need to be cleaned before handing them to $_CHBIND_COMPAT, let $_CHBI...
Daniel Hokka Zakrisson [Tue, 2 Jan 2007 20:54:26 +0000]
The CHBIND_OPTS need to be cleaned before handing them to $_CHBIND_COMPAT, let $_CHBIND do that.

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

17 years agoLet glibc use the alternative syscalls as well.
Daniel Hokka Zakrisson [Mon, 1 Jan 2007 19:37:36 +0000]
Let glibc use the alternative syscalls as well.

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

17 years agoOrganize things. Structures and functions dealing with similar things are now grouped...
Daniel Hokka Zakrisson [Sat, 30 Dec 2006 00:52:43 +0000]
Organize things. Structures and functions dealing with similar things are now grouped together.

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

17 years agoUse status for the process count instead since persistent adds a task there.
Daniel Hokka Zakrisson [Sat, 30 Dec 2006 00:40:09 +0000]
Use status for the process count instead since persistent adds a task there.

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

17 years agoAdd vdevmap to ignore.
Daniel Hokka Zakrisson [Sat, 30 Dec 2006 00:37:11 +0000]
Add vdevmap to ignore.

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

17 years agoReturn a sane value from kill_contexts.
Daniel Hokka Zakrisson [Fri, 29 Dec 2006 20:34:03 +0000]
Return a sane value from kill_contexts.

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

17 years agoUse the correct type for the configuration bitfield.
Daniel Hokka Zakrisson [Fri, 29 Dec 2006 20:33:26 +0000]
Use the correct type for the configuration bitfield.

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

17 years agoAdd util-vserver initscript handling.
Daniel Hokka Zakrisson [Fri, 29 Dec 2006 20:32:53 +0000]
Add util-vserver initscript handling.
Add %changelog comment.

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

17 years agoAdd vdevmap.
Daniel Hokka Zakrisson [Fri, 29 Dec 2006 20:30:22 +0000]
Add vdevmap.

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

17 years agoMove initscript functions to vserver-init.functions.
Daniel Hokka Zakrisson [Thu, 28 Dec 2006 00:07:05 +0000]
Move initscript functions to vserver-init.functions.
Make vprocunhide use said functions.
Add an initscript to set the helper and kill guest processes.

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

17 years agoAdd --without doc and --with legacy options.
Daniel Hokka Zakrisson [Thu, 28 Dec 2006 00:05:43 +0000]
Add --without doc and --with legacy options.

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

17 years agocosmetic fixes for vserver-wrapper
Benedikt Boehm [Wed, 20 Dec 2006 13:39:58 +0000]
cosmetic fixes for vserver-wrapper

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

17 years agoAdd --immutable, --~immutable and --!immutable.
Daniel Hokka Zakrisson [Tue, 19 Dec 2006 19:18:12 +0000]
Add --immutable, --~immutable and --!immutable.

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

17 years agoDon't check the VLAN stuff if novlandev was specified.
Daniel Hokka Zakrisson [Mon, 18 Dec 2006 11:26:28 +0000]
Don't check the VLAN stuff if novlandev was specified.

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

17 years agoError on too many arguments.
Daniel Hokka Zakrisson [Tue, 12 Dec 2006 13:18:31 +0000]
Error on too many arguments.

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

17 years agoUpdate debootstrap URL.
Daniel Hokka Zakrisson [Tue, 12 Dec 2006 13:18:11 +0000]
Update debootstrap URL.

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

17 years agoAdd vdevmap and required functionality.
Daniel Hokka Zakrisson [Tue, 12 Dec 2006 01:39:54 +0000]
Add vdevmap and required functionality.

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

17 years agoImprove the vshelper warning (common sign of multiple installs).
Daniel Hokka Zakrisson [Sun, 10 Dec 2006 17:45:28 +0000]
Improve the vshelper warning (common sign of multiple installs).

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

17 years agofixed location of the lockfile; formerly, the chroot path was prepended
Enrico Scholz [Sun, 10 Dec 2006 12:56:27 +0000]
fixed location of the lockfile; formerly, the chroot path was prepended
twice

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

17 years agoDon't enable the legacy initscript by default.
Daniel Hokka Zakrisson [Sun, 10 Dec 2006 00:57:53 +0000]
Don't enable the legacy initscript by default.

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

17 years agoVersion 0.30.212.
Daniel Hokka Zakrisson [Sat, 9 Dec 2006 16:13:54 +0000]
Version 0.30.212.

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

17 years agovserver.h defines CLONE_NEW*.
Daniel Hokka Zakrisson [Sat, 9 Dec 2006 16:12:18 +0000]
vserver.h defines CLONE_NEW*.
Remove unused include of sys_clone.h from vdlimit.

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

17 years agoMake getFileArray handle multiple files as well.
Daniel Hokka Zakrisson [Sat, 9 Dec 2006 16:02:03 +0000]
Make getFileArray handle multiple files as well.

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

17 years agoOnly enter the namespaces for static and dynamic xids (i.e. not the spectator).
Daniel Hokka Zakrisson [Fri, 8 Dec 2006 15:35:24 +0000]
Only enter the namespaces for static and dynamic xids (i.e. not the spectator).

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

17 years agoRather than keeping an unnecessary mount around just because it was the cwd, cd to...
Daniel Hokka Zakrisson [Fri, 8 Dec 2006 13:28:02 +0000]
Rather than keeping an unnecessary mount around just because it was the cwd, cd to the root at the beginning while storing the original cwd (so it can be used later).

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

17 years agoChange the default stylesheet.
Daniel Hokka Zakrisson [Fri, 8 Dec 2006 13:25:48 +0000]
Change the default stylesheet.

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

17 years agoAdd missing hunks from last commit.
Daniel Hokka Zakrisson [Fri, 8 Dec 2006 13:25:29 +0000]
Add missing hunks from last commit.

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

17 years agoWork better on 2.6.19.
Daniel Hokka Zakrisson [Fri, 8 Dec 2006 13:24:49 +0000]
Work better on 2.6.19.
This includes adding a new kind of API that depends on the VCI-bits, to detect the presence of spaces.
vnamespace now only enters the filesystem related namespaces (CLONE_NEWNS|CLONE_FS).
vc_ctx_migrate_spaces enters the others.
Fix dynamic context detection by using the VCI-bits.

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

17 years agoRemove unused argument.
Daniel Hokka Zakrisson [Fri, 8 Dec 2006 13:20:10 +0000]
Remove unused argument.

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

17 years agoUpdate kernel headers to 2.6.19-vs2.1.x-t7.
Daniel Hokka Zakrisson [Fri, 8 Dec 2006 13:05:06 +0000]
Update kernel headers to 2.6.19-vs2.1.x-t7.
Use the headers from make headers_install to cut down on unnecessary files/content.

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

17 years agoAdd cwd to the list of paths to exclude from namespace cleanup.
Daniel Hokka Zakrisson [Fri, 1 Dec 2006 21:10:28 +0000]
Add cwd to the list of paths to exclude from namespace cleanup.

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

17 years agoCorrect package and distribution name.
Daniel Hokka Zakrisson [Fri, 1 Dec 2006 18:41:01 +0000]
Correct package and distribution name.

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

17 years agoMake non-sysv initstyles work again.
Daniel Hokka Zakrisson [Tue, 28 Nov 2006 17:42:38 +0000]
Make non-sysv initstyles work again.

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

17 years agoAdd VLIMIT_MAPPED, for mapped files that are in RAM.
Daniel Hokka Zakrisson [Mon, 27 Nov 2006 14:18:46 +0000]
Add VLIMIT_MAPPED, for mapped files that are in RAM.

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

17 years agoDon't process unknown files.
Daniel Hokka Zakrisson [Mon, 27 Nov 2006 14:06:57 +0000]
Don't process unknown files.

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

17 years agoAdd missing quote.
Daniel Hokka Zakrisson [Sat, 25 Nov 2006 19:18:06 +0000]
Add missing quote.

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

17 years agoUse chroot-sh chmod to remove the symlink attack vector.
Daniel Hokka Zakrisson [Sat, 25 Nov 2006 19:17:51 +0000]
Use chroot-sh chmod to remove the symlink attack vector.

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

17 years agoAdd missing #include <stddef.h> needed for offsetof when using glibc.
Daniel Hokka Zakrisson [Sat, 25 Nov 2006 02:04:54 +0000]
Add missing #include <stddef.h> needed for offsetof when using glibc.

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

17 years agoAdd NXF_SINGLE_IP.
Daniel Hokka Zakrisson [Sat, 25 Nov 2006 00:38:30 +0000]
Add NXF_SINGLE_IP.

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

17 years agoMake quoting consistent.
Daniel Hokka Zakrisson [Fri, 24 Nov 2006 23:06:08 +0000]
Make quoting consistent.

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

17 years agoUse the same flags for legacy as the rsync build method's default.
Daniel Hokka Zakrisson [Fri, 24 Nov 2006 22:03:39 +0000]
Use the same flags for legacy as the rsync build method's default.

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

17 years agoUse --secure by default.
Daniel Hokka Zakrisson [Fri, 24 Nov 2006 20:34:54 +0000]
Use --secure by default.
Add VC_NXF_HIDE_NETIF to the secure default.

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

17 years agoAdd forgotten backslash.
Daniel Hokka Zakrisson [Fri, 24 Nov 2006 15:23:22 +0000]
Add forgotten backslash.

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

17 years agoCall vserver-build with --debug too, if it was specified.
Daniel Hokka Zakrisson [Fri, 24 Nov 2006 15:20:42 +0000]
Call vserver-build with --debug too, if it was specified.

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

17 years agoAdd an rsync build method.
Daniel Hokka Zakrisson [Fri, 24 Nov 2006 15:20:09 +0000]
Add an rsync build method.

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

17 years agoAdd since.
Daniel Hokka Zakrisson [Fri, 24 Nov 2006 14:12:22 +0000]
Add since.

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

17 years agoUpdate URL to the proc security page.
Daniel Hokka Zakrisson [Thu, 23 Nov 2006 23:56:02 +0000]
Update URL to the proc security page.

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

17 years agoUse CLONE_NEWUTS|CLONE_NEWIPC so it works with 2.6.19.
Daniel Hokka Zakrisson [Thu, 23 Nov 2006 21:30:01 +0000]
Use CLONE_NEWUTS|CLONE_NEWIPC so it works with 2.6.19.

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

17 years agoAdd support for the network flags and capabilities in the configuration.
Daniel Hokka Zakrisson [Thu, 23 Nov 2006 21:12:26 +0000]
Add support for the network flags and capabilities in the configuration.

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

17 years agoSupport the prefixes for all types of flags and capabilities.
Daniel Hokka Zakrisson [Thu, 23 Nov 2006 18:30:29 +0000]
Support the prefixes for all types of flags and capabilities.
Add NXF_INFO_PRIVATE.
Add NXF_HIDE_NETIF.
Add aliases for the legacy flags/caps so using the kernel's names will work.
Add alias for VXC_SET_RLIMIT.

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

17 years agoRecognize set_utsname as a ccap too.
Daniel Hokka Zakrisson [Mon, 20 Nov 2006 21:12:30 +0000]
Recognize set_utsname as a ccap too.

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

17 years agoAdd --rescue-init to the --help message.
Daniel Hokka Zakrisson [Mon, 20 Nov 2006 15:15:43 +0000]
Add --rescue-init to the --help message.

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

17 years agoUse --rescue-init.
Daniel Hokka Zakrisson [Mon, 20 Nov 2006 15:15:12 +0000]
Use --rescue-init.

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

17 years agoDon't set _IS_FAKEINIT on rescue, let the caller decide with --rescue-init.
Daniel Hokka Zakrisson [Mon, 20 Nov 2006 15:10:00 +0000]
Don't set _IS_FAKEINIT on rescue, let the caller decide with --rescue-init.

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

17 years agoUse $_CHBIND_COMPAT directly for legacy.
Daniel Hokka Zakrisson [Mon, 20 Nov 2006 15:09:19 +0000]
Use $_CHBIND_COMPAT directly for legacy.

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

17 years agoCosmetic fixes.
Daniel Hokka Zakrisson [Mon, 20 Nov 2006 15:01:44 +0000]
Cosmetic fixes.
Make sure args.do_set is set to false initially.

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

17 years agoMake vserver <guest> start --rescue ... work again.
Daniel Hokka Zakrisson [Mon, 20 Nov 2006 12:46:30 +0000]
Make vserver <guest> start --rescue ... work again.

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

17 years agoMake the prefix-to-netmask conversion work on big-endian too.
Daniel Hokka Zakrisson [Mon, 20 Nov 2006 00:23:13 +0000]
Make the prefix-to-netmask conversion work on big-endian too.
Check for invalid prefixes.
Improve help message.
Add --set operation that removes all the old IP addresses first.

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

17 years agoBreak up the old chbind into ncontext, nattribute, and naddress.
Daniel Hokka Zakrisson [Sun, 19 Nov 2006 17:25:11 +0000]
Break up the old chbind into ncontext, nattribute, and naddress.
This is done mostly to add support for network flags and caps, but also to get the same level of flexibility that the security contexts have.
In addition, a vc_nidopt2nid was created to correctly map --nid self to the current process's nid.

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

17 years agoFix chcontext --help and --version.
Daniel Hokka Zakrisson [Fri, 17 Nov 2006 18:48:33 +0000]
Fix chcontext --help and --version.

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

17 years agosoft-limit and hard-limit.
Daniel Hokka Zakrisson [Fri, 17 Nov 2006 18:42:10 +0000]
soft-limit and hard-limit.

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

17 years agoUse HTTP URLs for the keys (insecure, I know), so it'll work on non-Fedora systems...
Daniel Hokka Zakrisson [Wed, 15 Nov 2006 21:38:13 +0000]
Use HTTP URLs for the keys (insecure, I know), so it'll work on non-Fedora systems as well.

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

17 years agoAdd the new syscalls from 2.1.
Daniel Hokka Zakrisson [Wed, 15 Nov 2006 20:14:00 +0000]
Add the new syscalls from 2.1.

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

17 years agoEnable namespace cleanup by default.
Daniel Hokka Zakrisson [Tue, 14 Nov 2006 23:06:30 +0000]
Enable namespace cleanup by default.
Various cleanups in the documentation, make sure references work.

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

17 years agostrcpy copies \0, use memcpy instead.
Daniel Hokka Zakrisson [Tue, 14 Nov 2006 22:09:38 +0000]
strcpy copies \0, use memcpy instead.

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

17 years agoAdd the VLIMITs.
Daniel Hokka Zakrisson [Mon, 13 Nov 2006 21:53:45 +0000]
Add the VLIMITs.
Add RLIMIT_MSGQUEUE, define it ourselves if not present (like on 2.4).

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

17 years agoCosmetic fixes for vsched.
Daniel Hokka Zakrisson [Mon, 13 Nov 2006 18:35:05 +0000]
Cosmetic fixes for vsched.
Document the configuration format.

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

17 years agoForce update when starting the guest.
Daniel Hokka Zakrisson [Sat, 11 Nov 2006 02:05:32 +0000]
Force update when starting the guest.

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

17 years agoOnly bother with the first line of the files.
Daniel Hokka Zakrisson [Sat, 11 Nov 2006 00:53:25 +0000]
Only bother with the first line of the files.
Add required cast.

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

17 years agoMake vsched capable of configuring the new scheduler using a new configuration format...
Daniel Hokka Zakrisson [Sat, 11 Nov 2006 00:29:27 +0000]
Make vsched capable of configuring the new scheduler using a new configuration format (one value per file).

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

17 years agoSet svn:keywords.
Daniel Hokka Zakrisson [Sun, 5 Nov 2006 17:48:24 +0000]
Set svn:keywords.
Fix the vc_set_sched API to make more sense, and handle the logic in the wrapper.

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

17 years agoReset the limits unconditionally.
Daniel Hokka Zakrisson [Sun, 5 Nov 2006 17:46:33 +0000]
Reset the limits unconditionally.
Treat RLIMIT_NOFILE specially, since the kernel does.
Fix dietlibc'isms, and handle sys_old_getrlimit's values.

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

17 years agoReset all limits that aren't configured.
Daniel Hokka Zakrisson [Sat, 4 Nov 2006 19:36:06 +0000]
Reset all limits that aren't configured.

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

17 years agoFix typos from last commit.
Daniel Hokka Zakrisson [Sat, 4 Nov 2006 13:59:28 +0000]
Fix typos from last commit.

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

17 years agoMake vlogin optional.
Daniel Hokka Zakrisson [Fri, 3 Nov 2006 22:37:06 +0000]
Make vlogin optional.

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

17 years agoThis commit adds support for the 2.1 vserver API.
Daniel Hokka Zakrisson [Fri, 3 Nov 2006 19:59:15 +0000]
This commit adds support for the 2.1 vserver API.
Update the kernel headers to 2.1.1-rc47.
Add the new ccapabilities, context flags, and network flags.
Use the correct VCMDs for the older calls.
Add vc_set_sched_v21, to configure the new scheduler.
Add vc_set_ccaps_v21, which sets the ccaps and bcaps using the new interfaces for that.

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

17 years agoinit style gentoo will also work with older baselayout-vserver
Benedikt Boehm [Fri, 3 Nov 2006 16:20:09 +0000]
init style gentoo will also work with older baselayout-vserver

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

17 years agoAdd vemerge, vesync, vupdateworld and vdispatch-conf.
Daniel Hokka Zakrisson [Fri, 3 Nov 2006 15:02:01 +0000]
Add vemerge, vesync, vupdateworld and vdispatch-conf.
Fix the sort order a bit.

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

17 years agobcapabilities and ccapabilities won't be changing names any time soon, remove experim...
Daniel Hokka Zakrisson [Fri, 3 Nov 2006 14:56:31 +0000]
bcapabilities and ccapabilities won't be changing names any time soon, remove experimental marker.
ulimits are honored for 2.6 kernels as well.
Whitespace cleanup.

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

17 years agoadd gentoo specific wrappers: vemerge, vesync, vupdateworld and vdispatch-conf; add...
Benedikt Boehm [Fri, 3 Nov 2006 14:36:23 +0000]
add gentoo specific wrappers: vemerge, vesync, vupdateworld and vdispatch-conf; add RUNLEVEL_START to gentoo init style

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

17 years agofix fstab fixing for gentoo/initpost
Benedikt Boehm [Thu, 2 Nov 2006 19:32:12 +0000]
fix fstab fixing for gentoo/initpost

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

17 years agoAdd missing space.
Daniel Hokka Zakrisson [Wed, 1 Nov 2006 19:46:02 +0000]
Add missing space.

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

17 years agoreimplement gentoo init style + prepare distrib/gentoo for baselayout-1.13
Benedikt Boehm [Wed, 1 Nov 2006 19:23:24 +0000]
reimplement gentoo init style + prepare distrib/gentoo for baselayout-1.13

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

17 years agoadd mkdir and chmod functions to chroot-sh
Benedikt Boehm [Wed, 1 Nov 2006 15:34:06 +0000]
add mkdir and chmod functions to chroot-sh

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

17 years agofix no_dev_sanity logic
Benedikt Boehm [Tue, 31 Oct 2006 14:33:30 +0000]
fix no_dev_sanity logic

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

17 years agoImprove namespace cleanup to make sure some required directories stick around, and...
Daniel Hokka Zakrisson [Thu, 19 Oct 2006 15:09:47 +0000]
Improve namespace cleanup to make sure some required directories stick around, and add some configuration options to exclude further paths.

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