[Bug 1090462] Re: lxc-info, lxc-stop and lxc-list doesn't work for non-root users

Gleb Peregud gleber.p at gmail.com
Fri Dec 14 16:59:28 UTC 2012


apport information

** Tags added: apport-collected quantal

** Description changed:

  Hello
  
  After running both "sudo lxc-setuid" and "sudo lxc-setcap", both lxc-
  info and lxc-stop still doesn't work. Here's an example:
  
  gleber at first:/etc/apt/sources.list.d$ lxc-start-ephemeral -d -o ci1
  Setting up ephemeral container...
  Starting up the container...
  ci1-temp-RTqI6s8 is running
  You connect with the command:
  sudo lxc-console -n ci1-temp-RTqI6s8
  
  gleber at first:/etc/apt/sources.list.d$ lxc-info -n ci1-temp-RTqI6s8
  lxc-info: failed to get state for 'ci1-temp-RTqI6s8': Permission denied
  gleber at first:/etc/apt/sources.list.d$ lxc-stop -n ci1-temp-RTqI6s8
  lxc-stop: failed to stop 'ci1-temp-RTqI6s8': Permission denied
  
  I've tried extending "lxc-setuid" and "lxc-setcap" to add setuid and
  caps to lxc-stop and lxc-info, but failed to make it work.
  
  lxc version is (installed from Raring):
  
  gleber at first:/etc/apt/sources.list.d$ sudo aptitude show lxc | grep Version
  Version: 0.8.0~rc1-4ubuntu48
  
  Ubuntu version is:
  
  gleber at first:/etc/apt/sources.list.d$ lsb_release -a
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu 12.10
  Release:	12.10
  Codename:	quantal
  
  
  Best,
  Gleb
+ --- 
+ ApportVersion: 2.7-0ubuntu2
+ Architecture: i386
+ DistroRelease: Ubuntu 12.10
+ KernLog:
+  
+ MarkForUpload: True
+ NonfreeKernelModules: nvidia
+ Package: lxc 0.8.0~rc1-4ubuntu48 [modified: usr/bin/lxc-setcap usr/bin/lxc-setuid]
+ PackageArchitecture: i386
+ ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-3.5.0-19-generic root=UUID=e8e7b19c-1179-4cf0-9a7b-5879fb916154 ro quiet splash
+ ProcEnviron:
+  TERM=rxvt-unicode
+  PATH=(custom, no user)
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
+ ProcVersionSignature: Ubuntu 3.5.0-19.30-generic 3.5.7
+ Tags:  quantal
+ Uname: Linux 3.5.0-19-generic i686
+ UpgradeStatus: No upgrade log present (probably fresh install)
+ UserGroups: audio libvirtd sudo
+ lxcsyslog:
+  
+ modified.conffile..etc.default.lxc: [modified]
+ mtime.conffile..etc.default.lxc: 2012-12-12T17:39:04.517138

** Attachment added: "Dependencies.txt"
   https://bugs.launchpad.net/bugs/1090462/+attachment/3460058/+files/Dependencies.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1090462

Title:
  lxc-info, lxc-stop and lxc-list doesn't work for non-root users

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1090462/+subscriptions



More information about the Ubuntu-server-bugs mailing list