Re: [lxc-devel] [PATCH] [RFC] Complete rewrite of lxc-attach functionality

2013-05-20 Thread Christian Seiler
Hi Serge, >>This is due to user namespaces. The patch introduces a flat > > And pid ns right? Otherwise the task which did setns would look > funky inside the container. iiuc. Yes, of course. > I think d). Create a new attach_struct.h which you #include from both > lxccontainer.h and att

Re: [lxc-devel] [PATCH] [RFC] Complete rewrite of lxc-attach functionality

2013-05-20 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > Hi, > > as discussed previously on this list, I've reimplemented the lxc-attach > functionality as an API function. The patchset consists of two parts: > > 1. Four minor patches that just fix some bugs, shuffle definitions > around and impleme

Re: [lxc-devel] [PATCH] [RFC] Complete rewrite of lxc-attach functionality

2013-05-20 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > Hi, > > as discussed previously on this list, I've reimplemented the lxc-attach > functionality as an API function. The patchset consists of two parts: > > 1. Four minor patches that just fix some bugs, shuffle definitions > around and impleme

Re: [lxc-devel] [PATCH] [RFC] Complete rewrite of lxc-attach functionality

2013-05-20 Thread Christian Seiler
Hi again, Oh, I forgot, I've also added the patches to my github tree, you can find them in the branch: https://github.com/chris-se/lxc/tree/attach-rewrite -- Christian -- AlienVault Unified Security Management (USM) pl

[lxc-devel] [PATCH] [RFC] Complete rewrite of lxc-attach functionality

2013-05-20 Thread Christian Seiler
Hi, as discussed previously on this list, I've reimplemented the lxc-attach functionality as an API function. The patchset consists of two parts: 1. Four minor patches that just fix some bugs, shuffle definitions around and implement some small utility functions that I need for the attac