<p></p>
<p>Sorry, what is missing is that the environment is not a purely chroot; but set up by the building procedure, I just guessed it to be chroot, but it's also setting up namespaces to mount proc and others, which causes some other namespace calls to fail.   Whether that's a problem or a limitation, I'm not sure.  I've seen similar issues with chrooted environment, but it's clearly just a part of the problem, not the main cause.</p>
<p>However, I'm not able to produce anything standalone to reproduce the same error, other than installing xbps and attempting to build and test the strace package within that build procedure.</p>
<p>What I'm seeing is:</p>
<p><code>$ ./xbps-src chroot => xbps-src: updating repositories for host (x86_64)... [*] Updating repository </code><a href="https://alpha.de.repo.voidlinux.org/current/x86_64-repodata" rel="nofollow">https://alpha.de.repo.voidlinux.org/current/x86_64-repodata</a><br>
..<br>
cd builddir/strace-5.12/<br>
[void-packages/masterdir /]$ cd builddir/strace-5.12/<br>
[void-packages/masterdir strace-5.12]$ /bin/pwd<br>
/builddir/strace-5.12<br>
[void-packages/masterdir strace-5.12]$ ./src/strace -qq -a24 -esignal=none -eioctl,unsh><br>
ioctl(3, NS_GET_USERNS) = -1 EPERM (Operation not permitted)<br>
pidns.c:187: ioctl(NS_GET_USERNS): Operation not permitted<br>
`</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/strace/strace/pull/190#issuecomment-884090598">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR6GZM7WRIICSD2COWDTY2QP7ANCNFSM5AWHHNAQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AOVBTR3ULZ26CW2IVMUAWYLTY2QP7A5CNFSM5AWHHNA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGSZCNZQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/pull/190#issuecomment-884090598",
"url": "https://github.com/strace/strace/pull/190#issuecomment-884090598",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>