[Bug 1535234] Re: chown fails on root-owned files with "rw-build-tree"
Launchpad Bug Tracker
1535234 at bugs.launchpad.net
Thu Jan 21 18:06:13 UTC 2016
This bug was fixed in the package autopkgtest - 3.19.2
---------------
autopkgtest (3.19.2) unstable; urgency=medium
* Fix "apt-get source" version detection:
- Ignore source record "Binary:" entries which are not actually binaries
of that source.
- Take the highest source version of all encountered binaries. In other
words, as soon as apt pinning uses one package from -proposed, use the
tests from -proposed too.
- Only consider binaries which exist in all releases. This avoids newly
introduced binaries (library transitions, new kernel versions) to skew
the intended apt pinning as they would always win the "highest version"
check from above.
* Install /usr/share/autopkgtest/setup-commands/* scripts as executable, to
make them work for vmdebootstrap --customize. (Closes: #810862)
* ssh-setup/nova: Use extended RE for matching --image pattern.
* setup-commands/setup-testbed: Fix handling of options in sources.list.
* tools/adt-build-lxd: Fix parsing of release name from apt sources with
options if lsb_release is not available.
* setup-commands/setup-testbed: Regenerate initramfs when adding udev rule
for disabling ifnames (for chroots).
* adt-buildvm-ubuntu-cloud: Drop duplicate sed of cloud-init.prerm.
* adt-buildvm-ubuntu-cloud: Don't try to run "None" if --post-command is not
given.
* adt-virt-lxc: Add timeouts to all LXC operations.
* Fix chowning for "rw-build-tree" restriction: run it as root if available,
and otherwise ignore it entirely. (LP: #1535234)
* Drop apt-cache showsrc --only-source option, as this is not yet understood
by Ubuntu 12.04's apt.
* VirtSubproc.py, execute_timeout(): Avoid UnicodeDecodeErrors when called
programs send gibberish. Decode manually with "replace" error mode
instead. (LP: #1535741)
* adt-virt-lxc: Avoid unnecessary reading and decoding of program outputs if
we don't actually use it.
* ssh-setup/nova: Use the image with the latest "created" time, instead of
the last lexicographic name.
-- Martin Pitt <mpitt at debian.org> Thu, 21 Jan 2016 13:30:40 +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/1535234
Title:
chown fails on root-owned files with "rw-build-tree"
Status in autopkgtest package in Ubuntu:
Fix Released
Bug description:
The ubuntu-make tests currently tmpfail on xenial due to this:
adt-run [15:33:32]: test large: [-----------------------
chown: changing ownership of ‘/tmp/adt-run.0gWOMN/build.oq7/ubuntu-make/tests/tools/__pycache__/local_server.cpython-34.pyc’:
+Operation not permitted
chown: changing ownership of ‘/tmp/adt-run.0gWOMN/build.oq7/ubuntu-make/tests/tools/__pycache__/__init__.cpython-34.pyc’:
+Operation not permitted
adt-run [15:33:32]: test large: -----------------------]
sh: 1: cannot open /tmp/adt-run.0gWOMN/large-stdout: No such file
Exit request sent.
<VirtSubproc>: failure: copyup source failed, status 2
adt-run [15:33:40]: ERROR: testbed failure: unexpected eof from the testbed
This test has "Restrictions: rw-build-tree", but does not run as root,
thus this code in run_tests() gets run:
if self.user and 'rw-build-tree' in test.restrictions:
script += 'chown -R %s "$buildtree"; ' % self.user
this is bogus as chown as user will fail on any file which is not
already owned by that user. Thus the test wrapper shell script fails
before it even gets to starting "tee" for -stdout/-stderr and it fails
in the above manner.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1535234/+subscriptions
More information about the foundations-bugs
mailing list