Re: [lxc-devel] [PATCH] lxc-ls: Update code to allow non-root listing

2012-12-05 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > Re-arrange the code so that we only grab the container object when doing > something more than building a simple list of existing containers. > > This means that now the following calls can run unprivileged: > - lxc-ls > - lxc-ls -1 > > Everythin

[lxc-devel] [PATCH] lxc-ls: Update code to allow non-root listing

2012-12-04 Thread Stéphane Graber
Re-arrange the code so that we only grab the container object when doing something more than building a simple list of existing containers. This means that now the following calls can run unprivileged: - lxc-ls - lxc-ls -1 Everything else will still require root privileges. Signed-off-by: Stép