TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pledge and Unveil in OpenBSD [pdf]

125 点作者 gshrikant将近 7 年前

5 条评论

Panino将近 7 年前
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 未加载
akavel将近 7 年前
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 未加载
brynet将近 7 年前
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 未加载
zdw将近 7 年前
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)
teamhappy将近 7 年前
Does anybody here know when the videos will be up?