lxc-info, lxc-stop and lxc-list doesn't work for non-root users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
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@
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@
lxc-info: failed to get state for 'ci1-temp-RTqI6s8': Permission denied
gleber@
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@
Version: 0.8.0~rc1-4ubuntu48
Ubuntu version is:
gleber@
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
NonfreeKernelMo
Package: lxc 0.8.0~rc1-4ubuntu48 [modified: usr/bin/lxc-setcap usr/bin/lxc-setuid]
PackageArchitec
ProcCmdline: BOOT_IMAGE=
ProcEnviron:
TERM=rxvt-unicode
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: quantal
Uname: Linux 3.5.0-19-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: audio libvirtd sudo
lxcsyslog:
modified.
mtime.conffile.
apport information