running-in-container does not properly report 'lxc' on trusty

Bug #1824270 reported by Chad Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart
New
Undecided
Unassigned

Bug Description

Should we expect 'running-in-container' to report 'lxc' to non-root users?

root@t2:~# running-in-container
lxc
root@t2:~# su - ubuntu
ubuntu@t2:~$ running-in-container
ubuntu@t2:~$

ubuntu@t2:~$ cat /run/container_type
lxc
ubuntu@t2:~$ ls -l /run/container_type
-rw-r--r-- 1 root root 4 Apr 7 13:59 /run/container_type

ubuntu@t2:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.6 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.6 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.