Skip to content

Commit

Permalink
Deployed 2a3dcb0 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Feb 16, 2024
1 parent 3930217 commit a5f3dc1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions blog/2024/02/16/containers-101---chroot-part-i.html
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ <h1 id="containers-101-chroot-part-i">Containers 101 - chroot (Part I)<a class="
<p>Providing just the command is apparently not enough. To debug the execution the
command <a href="https://manpages.debian.org/strace.1.en.html" target="_blank">strace(1)</a>
can be used. This commands provides a trace of system calls.</p>
<div class="language-console highlight"><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="gp">$ </span>sudo<span class="w"> </span>chroot<span class="w"> </span>target
<div class="language-console highlight"><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="gp">$ </span>sudo<span class="w"> </span>strace<span class="w"> </span>chroot<span class="w"> </span>target
</span><span id="__span-2-2"><a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a><span class="go">...</span>
</span><span id="__span-2-3"><a id="__codelineno-2-3" name="__codelineno-2-3" href="#__codelineno-2-3"></a><span class="go">chroot(&quot;target&quot;) = 0</span>
</span><span id="__span-2-4"><a id="__codelineno-2-4" name="__codelineno-2-4" href="#__codelineno-2-4"></a><span class="go">chdir(&quot;/&quot;) = 0</span>
Expand Down Expand Up @@ -1374,12 +1374,12 @@ <h1 id="containers-101-chroot-part-i">Containers 101 - chroot (Part I)<a class="
</div>
<p>In the static executable the function <code>puts</code> is present and can be called by
existing address:</p>
<div class="language-console highlight"><pre><span></span><code><span id="__span-7-1"><a id="__codelineno-7-1" name="__codelineno-7-1" href="#__codelineno-7-1"></a><span class="go">nm app | grep &quot; puts&quot;</span>
<div class="language-console highlight"><pre><span></span><code><span id="__span-7-1"><a id="__codelineno-7-1" name="__codelineno-7-1" href="#__codelineno-7-1"></a><span class="gp">$ </span>nm<span class="w"> </span>app<span class="w"> </span><span class="p">|</span><span class="w"> </span>grep<span class="w"> </span><span class="s2">&quot; puts&quot;</span>
</span><span id="__span-7-2"><a id="__codelineno-7-2" name="__codelineno-7-2" href="#__codelineno-7-2"></a><span class="go">000000000040c180 W puts</span>
</span></code></pre></div>
<p>When omitting the option <code>-static</code> the function <code>puts</code> is not part of the
executable:</p>
<div class="language-console highlight"><pre><span></span><code><span id="__span-8-1"><a id="__codelineno-8-1" name="__codelineno-8-1" href="#__codelineno-8-1"></a><span class="go">nm app | grep &quot; puts&quot;</span>
<div class="language-console highlight"><pre><span></span><code><span id="__span-8-1"><a id="__codelineno-8-1" name="__codelineno-8-1" href="#__codelineno-8-1"></a><span class="gp">$ </span>nm<span class="w"> </span>app<span class="w"> </span><span class="p">|</span><span class="w"> </span>grep<span class="w"> </span><span class="s2">&quot; puts&quot;</span>
</span><span id="__span-8-2"><a id="__codelineno-8-2" name="__codelineno-8-2" href="#__codelineno-8-2"></a><span class="go"> U puts@GLIBC_2.2.5</span>
</span></code></pre></div>
<p>Since all executable programs share the same standard libraries memory can be
Expand Down
2 changes: 1 addition & 1 deletion feed_json_updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"title": "Containers 101 - chroot (Part I)",
"content_html": "<h1>Containers 101 - chroot (Part I)</h1>\n<p>In this series the concept of containerization is presented by looking at the\nmechanisms behind the scenes. Before modern concepts like cgroups etc. are\ndescribed, the main idea behind bundling an execution environment is introduced\nby using a chroot environment.</p>",
"image": null,
"date_modified": "2024-02-16T10:45:46+00:00",
"date_modified": "2024-02-16T16:09:47+00:00",
"authors": [],
"tags": [
"Containers",
Expand Down
4 changes: 2 additions & 2 deletions feed_rss_created.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<language>en</language>


<pubDate>Fri, 16 Feb 2024 11:23:41 -0000</pubDate>
<lastBuildDate>Fri, 16 Feb 2024 11:23:41 -0000</lastBuildDate>
<pubDate>Fri, 16 Feb 2024 16:10:18 -0000</pubDate>
<lastBuildDate>Fri, 16 Feb 2024 16:10:18 -0000</lastBuildDate>
<ttl>1440</ttl>


Expand Down
6 changes: 3 additions & 3 deletions feed_rss_updated.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<language>en</language>


<pubDate>Fri, 16 Feb 2024 11:23:41 -0000</pubDate>
<lastBuildDate>Fri, 16 Feb 2024 11:23:41 -0000</lastBuildDate>
<pubDate>Fri, 16 Feb 2024 16:10:18 -0000</pubDate>
<lastBuildDate>Fri, 16 Feb 2024 16:10:18 -0000</lastBuildDate>
<ttl>1440</ttl>


Expand Down Expand Up @@ -43,7 +43,7 @@ mechanisms behind the scenes. Before modern concepts like cgroups etc. are
described, the main idea behind bundling an execution environment is introduced
by using a chroot environment.&lt;/p&gt;</description>
<link>https://dreknix.github.io/wiki/blog/2024/02/16/containers-101---chroot-part-i.html</link>
<pubDate>Fri, 16 Feb 2024 10:45:46 +0000</pubDate>
<pubDate>Fri, 16 Feb 2024 16:09:47 +0000</pubDate>
<source url="https://dreknix.github.io/wiki/feed_rss_updated.xml">dreknix - Documentation</source>

<guid isPermaLink="true">https://dreknix.github.io/wiki/blog/2024/02/16/containers-101---chroot-part-i.html</guid>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit a5f3dc1

Please sign in to comment.