Bug#728057: adt-virt-schroot: set incorrect TMPDIR permissions

Arthur de Jong adejong at debian.org
Sun Oct 27 22:56:27 UTC 2013


Package: autopkgtest
Version: 2.3.8
Severity: normal
Tags: patch

Hi,

I ran into an issue that took me quite some time to track down. It turns
out that adt-run sets a TMPDIR to a directory with insufficient
permissions.

From within a running test:

TMPDIR=/tmp/adt-run.WQzHYl/dsc0t-testsuite-testtmp/tmpdir

4 drwxrwxrwt  4 root root 4096 Oct 27 21:32 /tmp/adt-run.WQzHYl/dsc0t-testsuite-testtmp/tmpdir/
4 drwx------  4 root root 4096 Oct 27 21:32 /tmp/adt-run.WQzHYl/dsc0t-testsuite-testtmp/
4 drwxr-xr-x  6 root root 4096 Oct 27 21:32 /tmp/adt-run.WQzHYl/
4 drwxrwxrwt 10 root root 4096 Oct 27 21:31 /tmp/

The permissions of /tmp/adt-run.WQzHYl/dsc0t-testsuite-testtmp are
wrong. The test script runs some parts of the tests as a non-privileged
user that cannot access files under TMPDIR.

Setting a more liberal umask before running atd-run fixes the issue. The
attached patch also fixes the issue but I haven't checked whether other
directories are created with the correct permissions.

Thanks,

-- 
-- arthur - adejong at debian.org - http://people.debian.org/~adejong --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autopkgtest-set-testtmp-permissions.patch
Type: text/x-patch
Size: 863 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20131027/c22a4ee5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20131027/c22a4ee5/attachment.sig>


More information about the autopkgtest-devel mailing list