<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:phil@firehol.org" title="Phil Whineray <phil@firehol.org>"> <span class="fn">Phil Whineray</span></a>
</span> changed
<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - iptables-save fails silently in unprivileged lxc/lxd container"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1064">bug 1064</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>phil@firehol.org
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - iptables-save fails silently in unprivileged lxc/lxd container"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1064#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - iptables-save fails silently in unprivileged lxc/lxd container"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1064">bug 1064</a>
from <span class="vcard"><a class="email" href="mailto:phil@firehol.org" title="Phil Whineray <phil@firehol.org>"> <span class="fn">Phil Whineray</span></a>
</span></b>
<pre>Regarding the kernel patch, it requires the following sequence of system calls,
so that a mapping for root is available before the network namespace is
created:
unshare(CLONE_NEWUSER);
/* Setup any mappings */
unshare(CLONE_NEWNET);
I expect lxc, since it predates the patch just unshares the network namespace
at the same time as the user namespace, which will not have the desired effect
in this case.
I don't know how lxc works; are unprivileged containers started direct from the
command line or via a daemon? If the former, could someone try running it with
"unshare -r"?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>