TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pledge and Unveil in OpenBSD [pdf]

125 pointsby gshrikantalmost 7 years ago

5 comments

Paninoalmost 7 years ago
Awesome!<p>Given the Chrome example starting on page 6, here&#x27;s my guess as to how pledge and unveil will contain Chrome to e.g. protect SSH keys. First, 3 of the 5 Chrome processes are already pledged to disallow filesystem reads. The two remaining ones (RenderProcess and UtilityProcess) can be unveiled to allow directories like<p><pre><code> * ~&#x2F;.config&#x2F;chromium * ~&#x2F;.cache&#x2F;chromium * ~&#x2F;Downloads * &#x2F;tmp * and anything important I don&#x27;t know of </code></pre> Additionally, if unveil works like pledge and can be further restricted after e.g. reading files into memory, unveils can then be undone. Anyone know if the following would work to first allow access to &#x2F;tmp and then revoke that access?<p><pre><code> unveil(&quot;&#x2F;tmp&quot;, &quot;rw&quot;); &#x2F;* do some work *&#x2F; unveil(&quot;&#x2F;tmp&quot;, &quot;&quot;);</code></pre>
评论 #17278747 未加载
评论 #17281917 未加载
评论 #17278853 未加载
akavelalmost 7 years ago
The PDF has no introduction section, seems to be aimed at people who already know what it&#x27;s talking about. Can anyone shed some light on what is the idea here? I honestly don&#x27;t understand what&#x27;s going on, apart from that it seems to be some security-related feature (or actually two of them?)
评论 #17277519 未加载
评论 #17278112 未加载
brynetalmost 7 years ago
These are the slides from Bob Beck (beck@&#x27;s) talk at BSDCan 2018 (Jun 8-9th), apparently missing its first page.. [0]<p><a href="http:&#x2F;&#x2F;www.bsdcan.org&#x2F;2018&#x2F;schedule&#x2F;events&#x2F;968.en.html" rel="nofollow">http:&#x2F;&#x2F;www.bsdcan.org&#x2F;2018&#x2F;schedule&#x2F;events&#x2F;968.en.html</a><p>Video should eventually show up on YouTube.<p>[0] <a href="https:&#x2F;&#x2F;twitter.com&#x2F;bob_beck&#x2F;status&#x2F;1005162340956794880" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;bob_beck&#x2F;status&#x2F;1005162340956794880</a> ;-)
评论 #17278560 未加载
zdwalmost 7 years ago
Nice. Back in earlier versions of pledge(2), there was another argument that took paths to allow fs access on, as unveil(2) is doing, but it was never supported&#x2F;implemented. (see <a href="http:&#x2F;&#x2F;man.openbsd.org&#x2F;OpenBSD-6.0&#x2F;pledge.2" rel="nofollow">http:&#x2F;&#x2F;man.openbsd.org&#x2F;OpenBSD-6.0&#x2F;pledge.2</a> for the old syntax)
teamhappyalmost 7 years ago
Does anybody here know when the videos will be up?