Package: sbuild
Version: 0.86.2
Severity: minor
X-Debbugs-Cc: ni...@thykier.net


Hi

The sbuild code assumes that the directory hosting the UNSHARE_TMPDIR_TEMPLATE is mode 4777 (--chroot-mode=unshare). When it is not, the following rm failure will appear under cleanup

+------------------------------------------------------------------------------+
| Cleanup                                                                      |
+------------------------------------------------------------------------------+

Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use
rm: cannot remove '/home/user/debian/sbuild-test/tmp.sbuild.4Gf6tS2': 
Permission denied
[...]

This happens for both successful and failed builds. The temporary directory is properly cleaned regardless of this error (I guess there is rm code both on the host and "inside" the chroot).

In my case, I changed UNSHARE_TMPDIR_TEMPLATE into a directory under my user's HOME folder that I just created with mkdir -p. On my system, /tmp is mounted with "noexec" and therefore the default could not be used.


Best regards,
Niels

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to