<p>ioctl(NS_GET_USERNS) fails when run in a chrooted environment,<br>
which is a common way to build with distributions these days.</p>
<p>Handling EPERM allows these tests to be skipped when the<br>
the tests are run in the same environment.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/strace/strace/pull/190'>https://github.com/strace/strace/pull/190</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>tests/pidns.c: skip some namespace tests in chroot</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/strace/strace/pull/190/files#diff-a98af2c97a084a496115929dc0841340c8005f919cb3195c22c9bc43da059eea">tests/pidns.c</a>
    (17)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/strace/strace/pull/190.patch'>https://github.com/strace/strace/pull/190.patch</a></li>
  <li><a href='https://github.com/strace/strace/pull/190.diff'>https://github.com/strace/strace/pull/190.diff</a></li>
</ul>

<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">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR7B3DGFKQDWHQOX3X3TYWV4LANCNFSM5AWHHNAQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AOVBTRZDCI4OEA6LA3L4BW3TYWV4LA5CNFSM5AWHHNA2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OEOVOAA.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",
"url": "https://github.com/strace/strace/pull/190",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>