<div dir="ltr"><div>Package: reprotest<br>Version: 0.7.7<br>Severity: serious<br><br>I have the simple sl package I'm trying to build:<br><br><span style="font-family:monospace,monospace">>  apt source sl<br></span></div><div><span style="font-family:monospace,monospace">> reprotest sl_3.03-17build1.dsc<br>...<br>=======================<br>Reproduction successful<br>=======================<br>...</span><br><br></div><div>Works.<br><br>I'm trying to run this using a Debian Stretch Image I fetched from deboostrap through schroot.<br><br><span style="font-family:monospace,monospace">> sudo reprotest sl_3.03-17build1.dsc -- schroot stretch</span><br></div><div><div>(Sudo is needed to let build dependencies installed and since I get a sem_open: Permission denied otherwise)<br><br></div><div>It runs the first build, but when doing the 2nd build with variations I end up with the error:<br><span style="font-family:monospace,monospace">fuse: unknown option `-q'<br>fusermount: failed to unmount /tmp/reprotest.smM4SM/build-experiment-1: Invalid argument<br>cleanup failed with exit code 1</span><br><br></div><div>(Full output attached as run1.txt)<br></div><div><br></div><div></div><div>I wasn't planning on using disoderfs so I turn off that variation:<br><span style="font-family:monospace,monospace">> sudo reprotest sl_3.03-17build1.dsc --variations +all,-fileordering -- schroot stretch</span><br><br></div><div>I end up with the error:<br><span style="font-family:monospace,monospace">unshare: unshare failed: Operation non permise</span><br></div><div>(Full output attached as run2.txt)<br><br></div><div>Which I tracked down with strace to:<br><br><span style="font-family:monospace,monospace">[pid 15694] unshare(CLONE_NEWUTS|CLONE_NEWUSER) <br>= -1 EPERM (Operation not permitted)</span><br></div><div><br></div><div>Following a warning I made sure that<br>>  more /proc/sys/kernel/unprivileged_userns_clone<br>1<br><br></div><div>On both the host OS and chroot image.<br><br></div><div>It seems turning off the variations -kernel,-domain_host fixes this as unshare is not called. My understanding was that creating new user spaces is not allowed in chroots? See <a href="https://github.com/torvalds/linux/commit/3151527ee007b73a0ebd296010f1c0454a919c7d">https://github.com/torvalds/linux/commit/3151527ee007b73a0ebd296010f1c0454a919c7d</a><br></div><div><br></div><div>I am using Ubuntu 17.10 with kernel version 4.13.0-39-generic.<br><br></div><div>Thank you for your attention.<br></div></div></div>