[Bug 1266811] Re: --unbuilt-tree fails with adt-virt-lxc if the tree has 700 permissions

Launchpad Bug Tracker 1266811 at bugs.launchpad.net
Wed Jan 29 19:28:49 UTC 2014


This bug was fixed in the package autopkgtest - 2.6.1

---------------
autopkgtest (2.6.1) unstable; urgency=medium


  * adt-virt-lxc: Call lxc-config through sudo as well like all the other LXC
    commands. This fixes running adt-run as user with the LXC runner.
  * adt-run: For copydown(), always chown the testbed files to the non-root
    user (if available). This fixes a "Permission denied" error with the
    schroot or LXC runners and --unbuilt-tree if the source tree has tight
    permissions. (LP: #1266811)
  * Adjust LxcRunner.test_tree_built_binaries to also work with current apt
    (similar to commit 5798b7f for the schroot runner).
  * adt-virt-lxc: Call "sudo test" and "sudo readlink" instead of os.lexists()
    and os.readlink() as recent LXC now makes the default container dir
    /var/lib/lxc not readably by non-users. Fixes running adt-virt-lxc/adt-run
    as user. (LP: #1266809)
  * Add test for --binary with --built-tree.
  * adt-run.1: Clarify and fix some wrong and misleading documentation what
    happens with debs produced by source packages and specified with --binary.
    (LP: #1175557)

 -- Martin Pitt <mpitt at debian.org>  Wed, 29 Jan 2014 06:53:16 +0100

** Changed in: autopkgtest (Ubuntu)
       Status: Fix Committed => Fix Released

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

Title:
  --unbuilt-tree fails with adt-virt-lxc if the tree has 700 permissions

Status in “autopkgtest” package in Ubuntu:
  Fix Released

Bug description:
  Steps to reproduce:

  sudo apt-get install autopkgtest lxc ubuntu-dev-tools
  sudo lxc-create -t ubuntu-cloud -n trusty -- -r trusty -s daily
  sudo chmod 755 /var/lib/lxc  # workaround for bug 1266809
  pull-lp-source apache2 2.4.6-2ubuntu4
  chmod 700 2.4.6-2ubuntu4
  adt-run --gain-root=sudo --unbuilt-tree apache2-2.4.6 --- adt-virt-lxc --ephemeral trusty

  Expected results: successful test.
  Actual results: cp: cannot open ‘/tmp/adt-downtmp/ubtree0-ubtree/./debian/changelog’ for reading: Permission denied
  Debug output here: http://paste.ubuntu.com/6709295/

  It looks like the unbuilt tree is owned by root, and the user ubuntu
  cannot read it. I think this is a regression.

  Present in: autopkgtest 2.5.5

  Workaround: build a source package from the unbuilt tree manually, and
  then give adt-run a .dsc instead.

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



More information about the foundations-bugs mailing list