<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>User Namespace on *scratch*</title>
    <link>https://www.scrivano.org/tags/user-namespace/</link>
    <description>Recent content in User Namespace on *scratch*</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 06 Jun 2026 10:03:54 +0000</lastBuildDate>
    <atom:link href="https://www.scrivano.org/tags/user-namespace/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SUID binaries from a user namespace</title>
      <link>https://www.scrivano.org/2019/01/10/suid-binaries-from-a-user-namespace/</link>
      <pubDate>Thu, 10 Jan 2019 21:49:30 +0000</pubDate>
      <guid>https://www.scrivano.org/2019/01/10/suid-binaries-from-a-user-namespace/</guid>
      <description>&lt;p&gt;Additional IDs that are allocated to a user through /etc/subuid and /etc/subgid must be considered as permanently allocated and never reused for any other user. The reason is that a setuid binary created inside a user namespace can retain access to any UID that was mapped in that namespace, even after the namespace is destroyed. If the same UID range is later assigned to a different user, that new user would inherit access to files owned by the old user&amp;rsquo;s containers.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Become-root in a user namespace</title>
      <link>https://www.scrivano.org/2018/07/19/become-root-in-an-user-namespace/</link>
      <pubDate>Thu, 19 Jul 2018 08:28:06 +0000</pubDate>
      <guid>https://www.scrivano.org/2018/07/19/become-root-in-an-user-namespace/</guid>
      <description>&lt;p&gt;I’ve cleaned up some C files I was using locally for hacking with user namespaces and uploaded them to a new repository on github: &lt;a href=&#34;https://github.com/giuseppe/become-root&#34;&gt;https://github.com/giuseppe/become-root&lt;/a&gt;. The tool creates a new user namespace and maps the caller to UID 0 inside it, while also mapping additional UIDs and GIDs from the ranges allocated in &lt;em&gt;/etc/subuid&lt;/em&gt; and &lt;em&gt;/etc/subgid&lt;/em&gt;. This is the foundation needed for rootless containers, which require a full UID/GID mapping — not just the single-UID mapping that &lt;em&gt;unshare -r&lt;/em&gt; provides — to correctly represent file ownership inside container images.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
