[Bug 1535234] [NEW] chown fails on root-owned files with "rw-build-tree"
Martin Pitt
martin.pitt at ubuntu.com
Mon Jan 18 08:59:38 UTC 2016
Public bug reported:
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.
** Affects: autopkgtest (Ubuntu)
Importance: Medium
Assignee: Martin Pitt (pitti)
Status: In Progress
** Changed in: autopkgtest (Ubuntu)
Importance: Undecided => Medium
** Changed in: autopkgtest (Ubuntu)
Status: New => In Progress
** Changed in: autopkgtest (Ubuntu)
Assignee: (unassigned) => Martin Pitt (pitti)
--
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:
In Progress
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