[lxc-devel] lxc 1.1.2: "lxc-ls" vs "lxc-ls -P /var/lib/lxc"
Stéphane Graber
stgraber at ubuntu.com
Tue Apr 14 13:41:52 UTC 2015
On Tue, Apr 14, 2015 at 09:25:46AM +0200, Harald Dunkel wrote:
> Hi folks,
>
> I get a weird effect on running lxc-ls without root:
>
> {hdunkel at dpcl082:~ 507} lxc-ls
> {hdunkel at dpcl082:~ 508} echo $?
> 0
> {hdunkel at dpcl082:~ 509} lxc-ls -P /var/lib/lxc
> .jessie debbuild template.blog
> .mini lxc0
> .squeeze oraclient
> .wheezy p1
> centos65 p2
> {hdunkel at dpcl082:~ 510} echo $?
> 0
> {hdunkel at dpcl082:~ 511} ls -l /var/lib/lxc
> lrwxrwxrwx 1 root root 16 Aug 7 2014 /var/lib/lxc -> ../../export/lxc
> {hdunkel at dpcl082:~ 512} ls -al /var/lib/../../export/lxc
> total 180
> drwxr-xr-x 32 root root 4096 Apr 13 13:03 .
> drwxrwxrwt 22 root root 4096 Feb 2 09:52 ..
> drwxr-xr-x 3 root root 4096 Aug 19 2014 .jessie
> drwxr-xr-x 3 root root 4096 Nov 20 2013 .mini
> drwxr-xr-x 3 root root 4096 Nov 20 2013 .squeeze
> drwxr-xr-x 3 root root 4096 Aug 19 2014 .wheezy
> -rw-r--r-- 1 root root 781 Jul 2 2014 README
> drwxr-xr-x 4 root root 4096 Jan 21 2014 centos65
> drwxr-xr-x 3 root root 4096 Oct 17 07:46 debbuild
> -rw-r--r-- 1 root root 19973 Jan 23 09:33 lxc-monitord.log
> drwxrwxr-x 3 root root 4096 Mar 18 16:23 lxc0
> drwxr-xr-x 3 root root 4096 Oct 14 11:38 oraclient
> drwxr-xr-x 3 root root 4096 Aug 7 2014 p1
> drwxr-xr-x 3 root root 4096 Aug 7 2014 p2
> drwxrwxr-x 3 root root 4096 Apr 13 12:26 template.blog
> drwxr-xr-x 3 root root 4096 Oct 14 11:36 tmp
>
>
> Please note that the "-P /var/lib/lxc" makes lxc-ls work,
> even though its the default path. For root there is no
> such problem.
>
>
> Regards
> Harri
Ever since LXC 1.0.0 (so over a year now), lxc-ls run as non-root lists
unprivileged containers stored in ~/.local/share/lxc/
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20150414/bf0a662e/attachment.sig>
More information about the lxc-devel
mailing list