<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[I’ve been replacing sudo&#x2F;doas on most of my FreeBSD boxes with something much smaller: mdo(1) + mac_do(4) from base.]]></title><description><![CDATA[<p>I’ve been replacing sudo/doas on most of my FreeBSD boxes with something much smaller: mdo(1) + mac_do(4) from base.</p><p>No port. No sudoers parser. No setuid helper. Just a kernel MAC policy, a sysctl rule, and an explicit “SSH is the gate” security model.</p><p>Wrote up the full walkthrough for FreeBSD 15, including rule syntax, examples, caveats, and my surrounding hardening sysctls:</p><p></p><div class="card col-md-9 col-lg-6 position-relative link-preview p-0">



<a href="https://blog.hofstede.it/mdo-on-freebsd-15-base-system-privilege-delegation-with-mac_do/" title="mdo on FreeBSD 15: Base-System Privilege Delegation with mac_do">
<img src="https://blog.hofstede.it/images/site-image.png" class="card-img-top not-responsive" style="max-height:15rem" alt="Link Preview Image" />
</a>



<div class="card-body">
<h5 class="card-title">
<a href="https://blog.hofstede.it/mdo-on-freebsd-15-base-system-privilege-delegation-with-mac_do/">
mdo on FreeBSD 15: Base-System Privilege Delegation with mac_do
</a>
</h5>
<p class="card-text line-clamp-3">FreeBSD 15 ships mdo(1) and the mac_do(4) policy module in the base system. It replaces sudo and doas for most of my hosts, needs no ports, and configures wi...</p>
</div>
<a href="https://blog.hofstede.it/mdo-on-freebsd-15-base-system-privilege-delegation-with-mac_do/" class="card-footer text-body-secondary small d-flex gap-2 align-items-center lh-2">



<img src="https://blog.hofstede.it/favicon.ico" alt="favicon" class="not-responsive overflow-hiddden" style="max-width:21px;max-height:21px" />



<p class="d-inline-block text-truncate mb-0">Larvitz Blog <span class="text-secondary">(blog.hofstede.it)</span></p>
</a>
</div><p></p><p><a href="https://burningboard.net/tags/FreeBSD" rel="tag">#<span>FreeBSD</span></a> <a href="https://burningboard.net/tags/runbsd" rel="tag">#<span>runbsd</span></a> <a href="https://burningboard.net/tags/mdo" rel="tag">#<span>mdo</span></a> <a href="https://burningboard.net/tags/mac_do" rel="tag">#<span>mac_do</span></a> <a href="https://burningboard.net/tags/sysadmin" rel="tag">#<span>sysadmin</span></a> <a href="https://burningboard.net/tags/security" rel="tag">#<span>security</span></a></p>]]></description><link>https://board.circlewithadot.net/topic/ba4e50eb-7d46-4386-af08-d6c99f288ec5/i-ve-been-replacing-sudo-doas-on-most-of-my-freebsd-boxes-with-something-much-smaller-mdo-1-mac_do-4-from-base.</link><generator>RSS for Node</generator><lastBuildDate>Mon, 25 May 2026 20:44:59 GMT</lastBuildDate><atom:link href="https://board.circlewithadot.net/topic/ba4e50eb-7d46-4386-af08-d6c99f288ec5.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 May 2026 16:19:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I’ve been replacing sudo&#x2F;doas on most of my FreeBSD boxes with something much smaller: mdo(1) + mac_do(4) from base. on Mon, 18 May 2026 19:36:40 GMT]]></title><description><![CDATA[<p><span><a href="/user/feld%40friedcheese.us">@<span>feld</span></a></span> thank you for pointing that out. Article is updated with a note. I attributed you in the top of the article for the helpful feedback!</p>]]></description><link>https://board.circlewithadot.net/post/https://burningboard.net/users/Larvitz/statuses/116597260345107687</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://burningboard.net/users/Larvitz/statuses/116597260345107687</guid><dc:creator><![CDATA[larvitz@burningboard.net]]></dc:creator><pubDate>Mon, 18 May 2026 19:36:40 GMT</pubDate></item><item><title><![CDATA[Reply to I’ve been replacing sudo&#x2F;doas on most of my FreeBSD boxes with something much smaller: mdo(1) + mac_do(4) from base. on Mon, 18 May 2026 19:14:43 GMT]]></title><description><![CDATA[<p><span><a href="/user/larvitz%40burningboard.net">@<span>Larvitz</span></a></span> great write up! Definitely bookmarked here! Thank you!</p>]]></description><link>https://board.circlewithadot.net/post/https://ruby.social/users/vito/statuses/116597174038969021</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://ruby.social/users/vito/statuses/116597174038969021</guid><dc:creator><![CDATA[vito@ruby.social]]></dc:creator><pubDate>Mon, 18 May 2026 19:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to I’ve been replacing sudo&#x2F;doas on most of my FreeBSD boxes with something much smaller: mdo(1) + mac_do(4) from base. on Mon, 18 May 2026 19:11:30 GMT]]></title><description><![CDATA[<p><span><a href="/user/larvitz%40burningboard.net" rel="nofollow noopener">@<span>Larvitz</span></a></span> really interesting, thank you for the writeup!</p>]]></description><link>https://board.circlewithadot.net/post/https://infosec.exchange/users/adamshostack/statuses/116597161385097295</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://infosec.exchange/users/adamshostack/statuses/116597161385097295</guid><dc:creator><![CDATA[adamshostack@infosec.exchange]]></dc:creator><pubDate>Mon, 18 May 2026 19:11:30 GMT</pubDate></item><item><title><![CDATA[Reply to I’ve been replacing sudo&#x2F;doas on most of my FreeBSD boxes with something much smaller: mdo(1) + mac_do(4) from base. on Mon, 18 May 2026 18:14:32 GMT]]></title><description><![CDATA[<p><span><a href="/user/larvitz%40burningboard.net">@<span>Larvitz</span></a></span> Thanks for this, mdo is exactly what I was looking for. One question regarding your net.link.bridge.pfil_* recommendation: pf on my hosts filters on the bridge interface (1) instead of the member interfaces (0) - what are the advantages of turning this setup around?</p>]]></description><link>https://board.circlewithadot.net/post/https://social.eden.one/users/jan/statuses/116596937327630119</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://social.eden.one/users/jan/statuses/116596937327630119</guid><dc:creator><![CDATA[jan@social.eden.one]]></dc:creator><pubDate>Mon, 18 May 2026 18:14:32 GMT</pubDate></item></channel></rss>