adt-run fails with permission denied with option --user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Auto Package Testing |
Fix Released
|
Undecided
|
Jean-Baptiste Lallement | ||
autopkgtest (Debian) |
Fix Released
|
Unknown
|
|||
autopkgtest (Ubuntu) |
Fix Released
|
High
|
Dimitri John Ledkov |
Bug Description
Imported from Debian bug http://
Package: autopkgtest
Version: 2.2.3
Severity: normal
With option --user, adt-run fails with permission denied when it creates
tmpdir
The issue is that the top level temporary directory is owned by root
with permission 0700
Below the output of adt-run for postgresql-common:
$ sudo adt-run -d --leave-lang --unbuilt-tree . --user=ubuntu ---
adt-virt-null
adt-run: trace1: options: <Values at 0x9207ccc: {'set_lang': False,
'timeout_install': None, 'binaries_
[<Action ubtree ubtree0 <AF@ubtree0-
None, 'unbuilt_tree': None, 'timeout_test': None, 'tmp': None, 'binary':
None, 'timeout_factor': 1.0, 'timeout_short': None, 'vserver':
['adt-virt-null'], 'source': None, 'output_dir': None, 'debuglevel': 1,
'gainroot': None, 'timeout_build': None, 'built_
'user': 'ubuntu', 'logfile': None, 'override_control': None,
'gnupghome': '~/.autopkgtest
'built_tree': None, 'binaries': 'auto', 'binaries_
timeouts: {'test': 10000, 'short': 100, 'build': 100000, 'install': 3000}
adt-run: trace: ** init
adt-run: trace: ** start
adt-run: trace: $ vserver: adt-virt-null
adt-run: trace: @@@@@@@
adt-run: trace: ** open, scratch=None
adt-run: trace: ** cmdl = ['sh', '-c', 'exec "$@"', 'x']
adt-run: trace: * initialising
adt-run: trace: * no key generation needed
adt-run: trace: * reset
adt-run: trace: @@@@@@@
adt-run: trace: @@@@@@@
adt-run: trace1: ** blame += arg:.
adt-run: trace1: ** prepare1, modified=False, deps_processed=[], deps_new=[]
adt-run: trace1: ** needs_reset, previously=False
adt-run: trace: $ ubtree0-extract: sh -ec <SCRIPT> x
/tmp/tmp.
/tmp/tmp.
adt-run: trace1: $ exec 3>&1 >&2
adt-run: trace1: $ set -x
adt-run: trace1: $ spec="$2"
adt-run: trace1: $ origpwd=`pwd`
adt-run: trace1: $ cd /tmp/tmp.
adt-run: trace1: $ chown ubuntu .
adt-run: trace1: $ TMPDIR="$1"
adt-run: trace1: $ rm -rf -- "$TMPDIR"
adt-run: trace1: $ export TMPDIR
adt-run: trace1: $ su ubuntu -c 'mkdir -- "$TMPDIR"'
adt-run: trace1: $ spec="$spec" origpwd="$origpwd" su ubuntu -c '
adt-run: trace1: $ rm -rf "$spec"
adt-run: trace1: $ mkdir "$spec"
adt-run: trace1: $ cp -rP
--preserve=
adt-run: trace1: $ '
adt-run: trace1: $ cd [a-z0-9]*-*/.
adt-run: trace1: $ pwd >&3
adt-run: trace1: $ set +e; test -f debian/
+ spec=/tmp/
+ pwd
+ origpwd=
+ cd /tmp/tmp.
+ chown ubuntu .
+ TMPDIR=
+ rm -rf -- /tmp/tmp.
+ export TMPDIR
+ su ubuntu -c mkdir -- "$TMPDIR"
mkdir: cannot create directory
`/tmp/tmp.
blame: arg:.
badpkg: rules extract failed with exit code 1
adt-run: erroneous package: rules extract failed with exit code 1
adt-run: trace: ** stop
adt-run: trace: ** close,
scratch=
Related branches
- Martin Pitt: Approve
-
Diff: 16 lines (+1/-5)1 file modifiedbin/testbed/run-adt (+1/-5)
Changed in autopkgtest (Debian): | |
importance: | Undecided → Unknown |
Changed in auto-package-testing: | |
status: | New → Confirmed |
Changed in autopkgtest (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Dmitrijs Ledkovs (xnox) |
importance: | Undecided → High |
Changed in auto-package-testing: | |
status: | Fix Committed → Fix Released |
Changed in autopkgtest (Debian): | |
status: | New → Fix Released |
autopkgtest (2.2.3ubuntu1) raring; urgency=low
* Fix adt-run's user option fails with permission denied. (LP: 1084116) (Closes: #686292)