lxc-userspace.git
5 years agoSetting tag lxc-userspace-2.0-0 master python3 lxc-userspace-2.0-0
Thierry Parmentelat [Mon, 7 Jan 2019 11:16:39 +0000 (12:16 +0100)]
Setting tag lxc-userspace-2.0-0
ported to python3, including the setns C extension

5 years agonicer python code
Thierry Parmentelat [Fri, 4 Jan 2019 17:42:57 +0000 (18:42 +0100)]
nicer python code

5 years agofix specfile, could not install setns.so
Thierry Parmentelat [Fri, 4 Jan 2019 17:14:44 +0000 (18:14 +0100)]
fix specfile, could not install setns.so

5 years agocomplete migration to python3
Thierry Parmentelat [Fri, 4 Jan 2019 10:57:00 +0000 (11:57 +0100)]
complete migration to python3

5 years agobuild python extension for python3
Thierry Parmentelat [Wed, 2 Jan 2019 14:34:09 +0000 (15:34 +0100)]
build python extension for python3

5 years agojust nicer
Thierry Parmentelat [Wed, 2 Jan 2019 14:06:47 +0000 (15:06 +0100)]
just nicer

9 years agoSetting tag lxc-userspace-1.0-12 lxc-userspace-1.0-12
Thierry Parmentelat [Wed, 16 Jul 2014 10:15:39 +0000 (12:15 +0200)]
Setting tag lxc-userspace-1.0-12
fix lxcsu to spot the right architecture for the container - was always using the host's arch

9 years agofix the way we determine a container arch
Thierry Parmentelat [Wed, 9 Jul 2014 11:55:47 +0000 (13:55 +0200)]
fix the way we determine a container arch
prior to this change, the container driver_pid (i.e. libvirt_lxc instance) was used, which always returned x86_64
we now use init_pid (i.e. the systemd or upstart or init instance) which now reflects the container's setting
as a side note we could have used instead someting like 'virsh -c lxc:/// dumpxml container_name | grep arch'

9 years agoadd a Requires: to procps-ng as we use pgrep in lxcsu to determine container's arch
Thierry Parmentelat [Wed, 9 Jul 2014 11:53:31 +0000 (13:53 +0200)]
add a Requires: to procps-ng as we use pgrep in lxcsu to determine container's arch

9 years agoSetting tag lxc-userspace-1.0-11 lxc-userspace-1.0-11
Thierry Parmentelat [Mon, 28 Apr 2014 11:01:49 +0000 (13:01 +0200)]
Setting tag lxc-userspace-1.0-11
reworked kvmsu

10 years agoFixes to kvmsu function
Andy Bavier [Wed, 2 Apr 2014 13:52:53 +0000 (09:52 -0400)]
Fixes to kvmsu function

10 years agoSetting tag lxc-userspace-1.0-10 lxc-userspace-1.0-10
Thierry Parmentelat [Wed, 26 Mar 2014 14:50:33 +0000 (15:50 +0100)]
Setting tag lxc-userspace-1.0-10
lxcsu evaluates slice_uid earlier
this is for old-installed f18 nodes like in PLE

10 years agoMerge branch 'master' of ssh://git.planet-lab.org/git/lxc-userspace
Sapan Bhatia [Wed, 26 Mar 2014 14:14:03 +0000 (10:14 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/lxc-userspace

10 years agoFixed an error that crept in while refactoring kvmsu into slicesu
Sapan Bhatia [Wed, 26 Mar 2014 14:13:56 +0000 (10:13 -0400)]
Fixed an error that crept in while refactoring kvmsu into slicesu

10 years agoevaluate slice_uid earlier in the process
Thierry Parmentelat [Wed, 26 Mar 2014 10:22:20 +0000 (11:22 +0100)]
evaluate slice_uid earlier in the process
the previous code was, for some reason, behaving oddly on older f18 nodes
my hunch is that the call to pwd.getpwnam was taking place in a restricted environment
the new code was tested successfully on a PLE node

10 years agoSetting tag lxc-userspace-1.0-9 lxc-userspace-1.0-9
Thierry Parmentelat [Fri, 21 Mar 2014 15:50:00 +0000 (16:50 +0100)]
Setting tag lxc-userspace-1.0-9
does not rely on capsh (actually this was the one in the sliver)
use native capability dropping instead
provides new slicesu binary
suitable for libvirt-1.1 and above

10 years agoAdd slicesu to package
Sapan Bhatia [Wed, 19 Mar 2014 05:56:11 +0000 (01:56 -0400)]
Add slicesu to package

10 years agoGet scp to work over ssh/kvm
Sapan Bhatia [Wed, 19 Mar 2014 05:53:52 +0000 (01:53 -0400)]
Get scp to work over ssh/kvm

10 years agoReplaced lxcsu with slicesu. The latter supports hypervisors e.g. KVM
Sapan Bhatia [Wed, 19 Mar 2014 05:43:23 +0000 (01:43 -0400)]
Replaced lxcsu with slicesu. The latter supports hypervisors e.g. KVM

10 years agoFixed bug in user account switcheroo. We now use sudo instead of a non-existent bash...
Sapan Bhatia [Tue, 11 Mar 2014 02:27:29 +0000 (22:27 -0400)]
Fixed bug in user account switcheroo. We now use sudo instead of a non-existent bash option

10 years agoImplemented native capability dropping, eliminated capsh dependency
Sapan Bhatia [Tue, 25 Feb 2014 05:03:55 +0000 (00:03 -0500)]
Implemented native capability dropping, eliminated capsh dependency

10 years agoFixed tabulation issue in the previous patch
Sapan Bhatia [Tue, 21 Jan 2014 14:45:46 +0000 (09:45 -0500)]
Fixed tabulation issue in the previous patch

10 years agoTabulation issues. Revert "Make lookup of child pid portable. The new lookup works...
Sapan Bhatia [Tue, 21 Jan 2014 14:37:10 +0000 (09:37 -0500)]
Tabulation issues. Revert "Make lookup of child pid portable. The new lookup works on F18 and below."

This reverts commit 51380fc5bdc153460ea678b67ac96cd85847c8ea.

10 years agoMake lookup of child pid portable. The new lookup works on F18 and below.
Sapan Bhatia [Tue, 21 Jan 2014 09:45:07 +0000 (04:45 -0500)]
Make lookup of child pid portable. The new lookup works on F18 and below.

10 years agoa little cleanup won’t hurt
Thierry Parmentelat [Mon, 20 Jan 2014 17:40:51 +0000 (18:40 +0100)]
a little cleanup won’t hurt

10 years agowhen locating namespaces in /proc/<pid>/ns
Thierry Parmentelat [Mon, 20 Jan 2014 09:58:57 +0000 (10:58 +0100)]
when locating namespaces in /proc/<pid>/ns
do not use the result of virsh domid to determine <pid> as this would point at the lxc driver
we need to use its - expected single - child process, that instead corresponds to the VM init/systemd instance

10 years agoa safer way to sync code on a running node - no Makefile.vsh anyway
Thierry Parmentelat [Mon, 20 Jan 2014 07:37:07 +0000 (08:37 +0100)]
a safer way to sync code on a running node - no Makefile.vsh anyway

10 years agocheck return codes and print warnings when suspicius
Thierry Parmentelat [Wed, 15 Jan 2014 13:33:08 +0000 (14:33 +0100)]
check return codes and print warnings when suspicius

10 years agoremove code stolen from libvirt that is not needed any more
Thierry Parmentelat [Wed, 15 Jan 2014 13:32:38 +0000 (14:32 +0100)]
remove code stolen from libvirt that is not needed any more

10 years agomore meaningful retcods for ch[fs]context
Thierry Parmentelat [Wed, 15 Jan 2014 10:35:58 +0000 (11:35 +0100)]
more meaningful retcods for ch[fs]context

10 years agojust re-order
Thierry Parmentelat [Wed, 15 Jan 2014 09:46:26 +0000 (10:46 +0100)]
just re-order

10 years agocosmetic
Thierry Parmentelat [Wed, 15 Jan 2014 09:39:18 +0000 (10:39 +0100)]
cosmetic

10 years agoSapan's changes to address cgroups location
Thierry Parmentelat [Wed, 15 Jan 2014 09:34:41 +0000 (10:34 +0100)]
Sapan's changes to address cgroups location
Seems to work on fedora20 nodes

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