[Bug 942961] Re: running-in-container exits 1 as non-root even inside a container

Serge Hallyn 942961 at bugs.launchpad.net
Tue Feb 28 23:43:15 UTC 2012


Thanks for submitting this bug.

I'm not sure what we should do about this.

1. we could install dbus in all containers.  dbus is required in order
for non-root tasks to talk to upstart.

2. we could have running-in-container (maybe only if non-root) only
check /run/container_type.  /run is never persistent, so that should
actually be safe.

or we could do nothing, and say it's workign as designed.

I'm tempted to say let's do (2), but I have a feeling we'll keep running
into other problems if we don't do (1).

** Changed in: upstart (Ubuntu)
       Status: New => Confirmed

** Changed in: upstart (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/942961

Title:
  running-in-container exits 1 as non-root even inside a container

Status in “upstart” package in Ubuntu:
  Confirmed

Bug description:
  $ sudo running-in-container
  lxc

  $ running-in-container; echo $?
  1

  it should at very least exit with something other than '1' this canont
  be determined other than as root.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: upstart 1.4-0ubuntu8
  ProcVersionSignature: User Name 3.2.0-17.27-virtual 3.2.6
  Uname: Linux 3.2.0-17-virtual x86_64
  ApportVersion: 1.93-0ubuntu2
  Architecture: amd64
  Date: Tue Feb 28 23:17:20 2012
  Ec2AMI: ami-00000000
  Ec2AMIManifest: FIXME
  Ec2AvailabilityZone: nova
  Ec2InstanceType: m1.small
  Ec2Kernel: unavailable
  Ec2Ramdisk: unavailable
  ProcEnviron:
   TERM=screen
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: upstart
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.init.container.detect.conf: 2012-02-28T23:12:41.439110

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




More information about the foundations-bugs mailing list