[strace/strace] tests/pidns.c: skip some namespace tests in chroot (#190)

J Farkas notifications at github.com
Wed Jul 21 10:46:23 UTC 2021


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.

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.

What I'm seeing is:

`$ ./xbps-src chroot
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata
..
cd builddir/strace-5.12/
[void-packages/masterdir /]$ cd builddir/strace-5.12/
[void-packages/masterdir strace-5.12]$ /bin/pwd
/builddir/strace-5.12
[void-packages/masterdir strace-5.12]$ ./src/strace -qq -a24 -esignal=none -eioctl,unsh>
ioctl(3, NS_GET_USERNS) = -1 EPERM (Operation not permitted)
pidns.c:187: ioctl(NS_GET_USERNS): Operation not permitted
`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/pull/190#issuecomment-884090598
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20210721/1bd0fbd6/attachment.htm>


More information about the Strace-devel mailing list