lxc-userspace.git
10 years agoshorten cgroups-related code, and try as much sysfs related stuff before exiting deadend openvswitch
Thierry Parmentelat [Mon, 13 Jan 2014 14:33:14 +0000 (15:33 +0100)]
shorten cgroups-related code, and try as much sysfs related stuff before exiting

10 years agoadd a possible /sys/fs/cgroup location as observed on toady’s f18 build
Thierry Parmentelat [Sun, 12 Jan 2014 13:15:40 +0000 (14:15 +0100)]
add a possible /sys/fs/cgroup location as observed on toady’s f18 build
not sure why this changed though, nor how recent it is

10 years agosupport for libvirt—1.1 naming scheme
Thierry Parmentelat [Fri, 10 Jan 2014 13:25:29 +0000 (14:25 +0100)]
support for libvirt—1.1 naming scheme

10 years agoredid indent=4 but more carefully this time
Thierry Parmentelat [Fri, 10 Jan 2014 11:47:02 +0000 (12:47 +0100)]
redid indent=4 but more carefully this time

10 years agoshow more in debug mode
Thierry Parmentelat [Fri, 10 Jan 2014 10:34:29 +0000 (11:34 +0100)]
show more in debug mode

10 years agorun virsh connected to lxc
Thierry Parmentelat [Fri, 10 Jan 2014 10:28:22 +0000 (11:28 +0100)]
run virsh connected to lxc

10 years agodiscarded changes from branch that had the broken reindentation attempt
Thierry Parmentelat [Fri, 10 Jan 2014 10:14:03 +0000 (11:14 +0100)]
discarded changes from branch that had the broken reindentation attempt

10 years agoSimplify lxcsu by querying libvirt for pid
Thierry Parmentelat [Fri, 10 Jan 2014 10:05:02 +0000 (11:05 +0100)]
Simplify lxcsu by querying libvirt for pid

this is a manual re-injection of Sapan’s change
it was a big mistake to reindent automatically as this broke the logic entirely

10 years agoSimplify lxcsu by querying libvirt for pid
Sapan Bhatia [Thu, 9 Jan 2014 18:00:43 +0000 (13:00 -0500)]
Simplify lxcsu by querying libvirt for pid

10 years agoindent=4
Thierry Parmentelat [Thu, 9 Jan 2014 16:01:10 +0000 (17:01 +0100)]
indent=4

10 years agofix perms
Scott Baker [Tue, 3 Dec 2013 00:07:56 +0000 (16:07 -0800)]
fix perms

10 years agofix sysctl support causing scp to break due to printing text to ssh connection
Scott Baker [Tue, 3 Dec 2013 00:07:42 +0000 (16:07 -0800)]
fix sysctl support causing scp to break due to printing text to ssh connection

10 years agoFix for the "error disabling cgroup" error
Sapan Bhatia [Wed, 9 Oct 2013 02:43:10 +0000 (22:43 -0400)]
Fix for the "error disabling cgroup" error

10 years agoSetting tag lxc-userspace-1.0-8 lxc-userspace-1.0-8
Thierry Parmentelat [Fri, 20 Sep 2013 09:43:58 +0000 (11:43 +0200)]
Setting tag lxc-userspace-1.0-8
fix vsh permissions

10 years agoset u+s on /usr/sbin/vsh
Scott Baker [Thu, 5 Sep 2013 23:04:06 +0000 (16:04 -0700)]
set u+s on /usr/sbin/vsh

10 years agoSetting tag lxc-userspace-1.0-7 lxc-userspace-1.0-7
Thierry Parmentelat [Sat, 31 Aug 2013 09:29:26 +0000 (11:29 +0200)]
Setting tag lxc-userspace-1.0-7
perform vsys sysctl inside of container
remove unnecessary proc remounts
prevent setting LD_PRELOAD if the library doesn't exist in image
add --noslicehome option
check /etc/lxcsu_default for default arguments
fix permissions
support conventional invocation of make

10 years agoadd --noslicehome option, and check /etc/lxcsu_default for default arguments
Scott Baker [Fri, 30 Aug 2013 18:08:29 +0000 (11:08 -0700)]
add --noslicehome option, and check /etc/lxcsu_default for default arguments

10 years agoThomas's fix on Makefile + remove lines with tabs
Thierry Parmentelat [Mon, 26 Aug 2013 11:40:22 +0000 (13:40 +0200)]
Thomas's fix on Makefile + remove lines with tabs

10 years agofix permissions
Scott Baker [Fri, 16 Aug 2013 00:06:40 +0000 (17:06 -0700)]
fix permissions

10 years agoremove unnecessary proc remounts, prevent setting LD_PRELOAD if the library doesn...
Scott Baker [Fri, 16 Aug 2013 00:06:26 +0000 (17:06 -0700)]
remove unnecessary proc remounts, prevent setting LD_PRELOAD if the library doesn't exist in image

10 years agoSupport conventional invocation of make
Sapan Bhatia [Mon, 12 Aug 2013 20:39:46 +0000 (16:39 -0400)]
Support conventional invocation of make

10 years agoasm/unistd.h is a more standard include than asm-generic/unistd.h
Sapan Bhatia [Mon, 12 Aug 2013 20:34:06 +0000 (16:34 -0400)]
asm/unistd.h is a more standard include than asm-generic/unistd.h

10 years agofix perms
Scott Baker [Mon, 12 Aug 2013 19:46:20 +0000 (12:46 -0700)]
fix perms

10 years agofix lxcsu not handling nodemanager interfaces.py ('/sbin/service network restart...
Scott Baker [Mon, 12 Aug 2013 19:45:55 +0000 (12:45 -0700)]
fix lxcsu not handling nodemanager interfaces.py ('/sbin/service network restart') properly

10 years agofix perms
smbaker [Mon, 5 Aug 2013 19:11:06 +0000 (12:11 -0700)]
fix perms

10 years agoperform vsys sysctl inside of container
smbaker [Mon, 5 Aug 2013 19:10:42 +0000 (12:10 -0700)]
perform vsys sysctl inside of container

10 years agoSetting tag lxc-userspace-1.0-6 lxc-userspace-1.0-6
Thierry Parmentelat [Sat, 13 Jul 2013 22:15:26 +0000 (00:15 +0200)]
Setting tag lxc-userspace-1.0-6
merge back lxcsu and -internal into a single source file
capsh --uid instead of --user that was not yet supported in f12 (hopefully tmp)

10 years agomessages still had lxcsu-internal
Thierry Parmentelat [Mon, 8 Jul 2013 19:41:42 +0000 (21:41 +0200)]
messages still had lxcsu-internal

10 years agomove back to a single source file (lxcsu) with a -i/--internal option, and an lxcsu...
Thierry Parmentelat [Mon, 8 Jul 2013 19:19:33 +0000 (21:19 +0200)]
move back to a single source file (lxcsu) with a -i/--internal option, and an lxcsu-internal symlink

10 years agocapsh --user is available from f14 only
Thierry Parmentelat [Sat, 6 Jul 2013 13:16:47 +0000 (15:16 +0200)]
capsh --user is available from f14 only
use caps --uid instead for now

10 years agoremove useless import
Thierry Parmentelat [Sat, 6 Jul 2013 13:12:08 +0000 (15:12 +0200)]
remove useless import

10 years agoSetting tag lxc-userspace-1.0-5 lxc-userspace-1.0-5
Thierry Parmentelat [Wed, 3 Jul 2013 05:56:27 +0000 (07:56 +0200)]
Setting tag lxc-userspace-1.0-5
entering in a slice now correctly ends up with right uid and pwd
make sync

10 years agoexplicitly chdir to slice's homedir since bash does not seem to be willing to do...
Thierry Parmentelat [Tue, 2 Jul 2013 14:45:24 +0000 (16:45 +0200)]
explicitly chdir to slice's homedir since bash does not seem to be willing to do so even though it's started with --login...

10 years agolxcsu-internal to set LD_PRELOAD and HOME (resulting process wtill ends up in / though)
Thierry Parmentelat [Tue, 2 Jul 2013 11:32:20 +0000 (13:32 +0200)]
lxcsu-internal to set LD_PRELOAD and HOME (resulting process wtill ends up in / though)

10 years agolxcsu-internal to call capsh with --user=<slicename>
Thierry Parmentelat [Tue, 2 Jul 2013 11:31:09 +0000 (13:31 +0200)]
lxcsu-internal to call capsh with --user=<slicename>

10 years agomake sync needs to set extra permissions as well
Thierry Parmentelat [Tue, 2 Jul 2013 10:07:23 +0000 (12:07 +0200)]
make sync needs to set extra permissions as well

10 years agocan use make sync to push a working version on a tesst node
Thierry Parmentelat [Tue, 2 Jul 2013 10:00:16 +0000 (12:00 +0200)]
can use make sync to push a working version on a tesst node

10 years agoSetting tag lxc-userspace-1.0-4 lxc-userspace-1.0-4
Sapan Bhatia [Mon, 1 Jul 2013 22:03:44 +0000 (18:03 -0400)]
Setting tag lxc-userspace-1.0-4
Bug fixes:
- lxcsu <slice_name> works again
- pid namespace issue that would let slices see all processes

10 years agoFixed pid ns bug
Sapan Bhatia [Mon, 1 Jul 2013 22:01:32 +0000 (18:01 -0400)]
Fixed pid ns bug

10 years agoAdd commandline option to bash in order to support "lxcsu <slicename>"
Sapan Bhatia [Mon, 1 Jul 2013 15:30:53 +0000 (11:30 -0400)]
Add commandline option to bash in order to support "lxcsu <slicename>"

10 years agoSetting tag lxc-userspace-1.0-3 lxc-userspace-1.0-3
Sapan Bhatia [Fri, 28 Jun 2013 16:58:36 +0000 (12:58 -0400)]
Setting tag lxc-userspace-1.0-3
Fixed bug that would let slices see all processes in root context.

10 years agoMerge branch 'master' of ssh://git.planet-lab.org/git/lxc-userspace
Sapan Bhatia [Fri, 28 Jun 2013 16:53:35 +0000 (12:53 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/lxc-userspace

10 years agolxcsu proc bug fix
Sapan Bhatia [Fri, 28 Jun 2013 16:53:27 +0000 (12:53 -0400)]
lxcsu proc bug fix

10 years agoSetting tag lxc-userspace-1.0-2 lxc-userspace-1.0-2
Thierry Parmentelat [Wed, 26 Jun 2013 07:06:07 +0000 (09:06 +0200)]
Setting tag lxc-userspace-1.0-2
split into lxcsu{,-internal}

10 years agosupport for centos 5.5 image
smbaker [Mon, 24 Jun 2013 20:29:44 +0000 (13:29 -0700)]
support for centos 5.5 image

10 years agorename options into ags as we use ArgumentParser and not OtionParser any more
Thierry Parmentelat [Sun, 23 Jun 2013 06:22:44 +0000 (08:22 +0200)]
rename options into ags as we use ArgumentParser and not OtionParser any more

10 years agoOOPS - was packaging lxcsu as lxcsu-internal
Thierry Parmentelat [Sun, 23 Jun 2013 06:20:25 +0000 (08:20 +0200)]
OOPS - was packaging lxcsu as lxcsu-internal

10 years agoprobable fix
Thierry Parmentelat [Fri, 21 Jun 2013 15:03:34 +0000 (17:03 +0200)]
probable fix

10 years agocleanup and add suggestions but commented
Thierry Parmentelat [Fri, 21 Jun 2013 15:03:00 +0000 (17:03 +0200)]
cleanup and add suggestions but commented

10 years agopackage lxcsu-internal
Thierry Parmentelat [Thu, 20 Jun 2013 09:19:40 +0000 (11:19 +0200)]
package lxcsu-internal

10 years agoAdded support for sysctls
Sapan Bhatia [Tue, 18 Jun 2013 01:31:33 +0000 (21:31 -0400)]
Added support for sysctls

10 years agoSupport lxcsu <slicename>
Sapan Bhatia [Tue, 18 Jun 2013 01:07:11 +0000 (21:07 -0400)]
Support lxcsu <slicename>

10 years agoChanged interface to lxcsu. Now invoked as lxcsu <slicename> command
Sapan Bhatia [Tue, 18 Jun 2013 01:04:36 +0000 (21:04 -0400)]
Changed interface to lxcsu. Now invoked as lxcsu <slicename> command

10 years agoSetting tag lxc-userspace-1.0-1 lxc-userspace-1.0-1
Thierry Parmentelat [Wed, 5 Jun 2013 17:05:16 +0000 (19:05 +0200)]
Setting tag lxc-userspace-1.0-1
rename module and package from lxctools into lxc-userspace

10 years agorename into lxc-userspace and bump release to 1.0
Thierry Parmentelat [Tue, 4 Jun 2013 17:52:44 +0000 (19:52 +0200)]
rename into lxc-userspace and bump release to 1.0
this package does Obsoletes: lxctools

10 years agoSetting tag lxctools-0.9-8 lxc-userspace-1.0-0 lxctools-0.9-8
Sapan Bhatia [Mon, 3 Jun 2013 19:55:18 +0000 (15:55 -0400)]
Setting tag lxctools-0.9-8
- Upgraded code for compatibility with kernel 3.6.9
- Obsoleted modules for switching into mnt and pid namespaces
- Added command to mount /proc if not mounted

10 years agoBug fixes
Sapan Bhatia [Mon, 3 Jun 2013 19:49:40 +0000 (15:49 -0400)]
Bug fixes

10 years agoMount /proc inside slice.
Sapan Bhatia [Mon, 3 Jun 2013 19:24:27 +0000 (15:24 -0400)]
Mount /proc inside slice.

10 years agoiron out argument parser usage, add --debug option, and get this to work again in...
Thierry Parmentelat [Thu, 30 May 2013 09:18:34 +0000 (11:18 +0200)]
iron out argument parser usage, add --debug option, and get this to work again in simple (no arch change) cases at least

10 years agoSetting tag lxctools-0.9-7 lxctools-0.9-7
Andy Bavier [Wed, 29 May 2013 17:17:44 +0000 (17:17 +0000)]
Setting tag lxctools-0.9-7
Use ArgumentParser, fix issue with sensing arch

10 years agoAdded binutils dependency
Andy Bavier [Wed, 29 May 2013 17:13:45 +0000 (13:13 -0400)]
Added binutils dependency

10 years agouse ArgumentParser instead of deprecated OptionParser
Thierry Parmentelat [Wed, 29 May 2013 13:42:23 +0000 (15:42 +0200)]
use ArgumentParser instead of deprecated OptionParser

10 years agoadded a main function
Thierry Parmentelat [Wed, 29 May 2013 13:40:25 +0000 (15:40 +0200)]
added a main function

10 years agodefine a default for 'arch' as I find it sometimes undefined
Thierry Parmentelat [Wed, 29 May 2013 13:30:03 +0000 (15:30 +0200)]
define a default for 'arch' as I find it sometimes undefined

10 years agoSetting tag lxctools-0.9-6 lxctools-0.9-6
Thierry Parmentelat [Wed, 29 May 2013 10:53:12 +0000 (12:53 +0200)]
Setting tag lxctools-0.9-6
implements vm's arch

10 years agoMerge branch 'master' of ssh://git.planet-lab.org/git/lxctools
Sapan Bhatia [Fri, 24 May 2013 14:51:32 +0000 (10:51 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/lxctools

10 years agoDetect architecture of lxc container and make sure the spawned environment has the...
Sapan Bhatia [Thu, 23 May 2013 22:02:56 +0000 (18:02 -0400)]
Detect architecture of lxc container and make sure the spawned environment has the same architecture.

10 years agoSetting tag lxctools-0.9-5 lxctools-0.9-5
Thierry Parmentelat [Tue, 23 Apr 2013 09:38:46 +0000 (11:38 +0200)]
Setting tag lxctools-0.9-5
more flexible and more robust lxcsu

10 years agorevert tag update so we can use module-tag
Thierry Parmentelat [Tue, 23 Apr 2013 09:36:26 +0000 (11:36 +0200)]
revert tag update so we can use module-tag

11 years agoWithout this, scp, ssh with bash arguments etc. does not work
Sapan Bhatia [Thu, 14 Mar 2013 18:10:10 +0000 (14:10 -0400)]
Without this, scp, ssh with bash arguments etc. does not work

11 years agoUpdated tag
Sapan Bhatia [Tue, 12 Mar 2013 14:20:30 +0000 (10:20 -0400)]
Updated tag

11 years agoAdded flexibility to lxcsu
Sapan Bhatia [Tue, 12 Mar 2013 14:20:04 +0000 (10:20 -0400)]
Added flexibility to lxcsu

11 years agoSetting tag lxctools-0.9-4 lxctools-0.9-4
Thierry Parmentelat [Thu, 7 Mar 2013 08:06:50 +0000 (09:06 +0100)]
Setting tag lxctools-0.9-4
nicer polish to lxcsu returning the right thing

11 years agoTweaked return code handling to use the usual Python method
Sapan Bhatia [Tue, 5 Mar 2013 14:19:12 +0000 (09:19 -0500)]
Tweaked return code handling to use the usual Python method

11 years agoSetting tag lxctools-0.9-3 lxctools-0.9-3
Thierry Parmentelat [Mon, 4 Mar 2013 10:23:54 +0000 (11:23 +0100)]
Setting tag lxctools-0.9-3
lxcsu to propagate its forked process's return code

11 years agoattempt to return correct retcod to vsh
Thierry Parmentelat [Mon, 4 Mar 2013 09:11:34 +0000 (10:11 +0100)]
attempt to return correct retcod to vsh

11 years agoSetting tag lxctools-0.9-2 lxctools-0.9-2
Thierry Parmentelat [Fri, 22 Feb 2013 18:20:22 +0000 (19:20 +0100)]
Setting tag lxctools-0.9-2
various fixes

11 years agorevert to a more sensible numbering scheme
Thierry Parmentelat [Thu, 21 Feb 2013 13:32:38 +0000 (14:32 +0100)]
revert to a more sensible numbering scheme

11 years agotweak for f18
Thierry Parmentelat [Thu, 31 Jan 2013 08:30:11 +0000 (09:30 +0100)]
tweak for f18

11 years agoFix bug in dropped capabilities
Sapan Bhatia [Tue, 22 Jan 2013 16:03:11 +0000 (11:03 -0500)]
Fix bug in dropped capabilities

11 years agoBump version
Sapan Bhatia [Tue, 22 Jan 2013 15:13:10 +0000 (10:13 -0500)]
Bump version

11 years agoPrevent slices from accessing cgroups fs
Sapan Bhatia [Tue, 22 Jan 2013 15:12:36 +0000 (10:12 -0500)]
Prevent slices from accessing cgroups fs

11 years agobump version number
smbaker [Tue, 18 Dec 2012 06:39:46 +0000 (22:39 -0800)]
bump version number

11 years agoadd mlab patch to add tasks to cpuacct cgroup, put os.environ before os.execv
smbaker [Tue, 18 Dec 2012 06:36:41 +0000 (22:36 -0800)]
add mlab patch to add tasks to cpuacct cgroup, put os.environ before os.execv

11 years agoRemove kernel dependency, since this package does not contain any kernel modules
Sapan Bhatia [Fri, 7 Dec 2012 16:01:28 +0000 (11:01 -0500)]
Remove kernel dependency, since this package does not contain any kernel modules

11 years agoSet shell to /bin/sh. By default it is vsh
Sapan Bhatia [Thu, 6 Dec 2012 18:45:45 +0000 (13:45 -0500)]
Set shell to /bin/sh. By default it is vsh

11 years agoRemove debug line
Sapan Bhatia [Wed, 5 Dec 2012 19:27:53 +0000 (14:27 -0500)]
Remove debug line

11 years agoBump tag
Sapan Bhatia [Wed, 5 Dec 2012 19:26:37 +0000 (14:26 -0500)]
Bump tag

11 years agoFix uts namespace bug + source /etc/profile when invoking bash
Sapan Bhatia [Wed, 5 Dec 2012 18:57:29 +0000 (13:57 -0500)]
Fix uts namespace bug + source /etc/profile when invoking bash

11 years agoBump version number lxctools-0.9-1
Andy Bavier [Wed, 24 Oct 2012 20:12:29 +0000 (15:12 -0500)]
Bump version number

11 years agoKeep cap_net_admin for configuring networking inside a slice
Andy Bavier [Wed, 24 Oct 2012 17:15:16 +0000 (12:15 -0500)]
Keep cap_net_admin for configuring networking inside a slice

11 years agobump version number
smbaker [Tue, 23 Oct 2012 04:52:20 +0000 (21:52 -0700)]
bump version number

11 years agoadd task to freezer cgroup
smbaker [Thu, 18 Oct 2012 05:34:40 +0000 (22:34 -0700)]
add task to freezer cgroup

11 years agoBumped version
Sapan Bhatia [Fri, 12 Oct 2012 13:47:46 +0000 (09:47 -0400)]
Bumped version

11 years agoBug fix from Scott Baker
Sapan Bhatia [Fri, 12 Oct 2012 13:47:14 +0000 (09:47 -0400)]
Bug fix from Scott Baker

11 years agofs is not a cgroup. handled by blkio
Sapan Bhatia [Tue, 9 Oct 2012 17:33:46 +0000 (13:33 -0400)]
fs is not a cgroup. handled by blkio

11 years agoBump versoin
Sapan Bhatia [Tue, 9 Oct 2012 17:26:53 +0000 (13:26 -0400)]
Bump versoin

11 years agoActivate cgroups for users
Sapan Bhatia [Tue, 9 Oct 2012 17:23:50 +0000 (13:23 -0400)]
Activate cgroups for users

11 years agoAdded openvswitch to taglevel
Andy Bavier [Fri, 21 Sep 2012 19:55:43 +0000 (15:55 -0400)]
Added openvswitch to taglevel

11 years agoRetain cap_net_admin in container
Andy Bavier [Wed, 19 Sep 2012 19:35:46 +0000 (15:35 -0400)]
Retain cap_net_admin in container