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.

macOS: App sandboxing via sandbox-exec (2020)

144 pointsby emdashcommaalmost 3 years ago

7 comments

jmmvalmost 3 years ago
A pretty “similar” article (in spirit?) I wrote a few years back: <a href="https:&#x2F;&#x2F;jmmv.dev&#x2F;2019&#x2F;11&#x2F;macos-sandbox-exec.html" rel="nofollow">https:&#x2F;&#x2F;jmmv.dev&#x2F;2019&#x2F;11&#x2F;macos-sandbox-exec.html</a>
评论 #31975156 未加载
评论 #31982847 未加载
iansinnottalmost 3 years ago
Readers might also be interested in this script wrapper [0], which I believe was inspired by the linked blog post.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;lynaghk&#x2F;sandboxtron" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lynaghk&#x2F;sandboxtron</a>
staticfloatalmost 3 years ago
We actually use this in our CI system to limit write access outside of the build environment’s build folder.<p>You can see some Julia code that generates the sandbox config rules here: <a href="https:&#x2F;&#x2F;github.com&#x2F;JuliaCI&#x2F;sandboxed-buildkite-agent&#x2F;blob&#x2F;main&#x2F;common&#x2F;mac_seatbelt_config.jl#L115" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JuliaCI&#x2F;sandboxed-buildkite-agent&#x2F;blob&#x2F;ma...</a>
0x69420almost 3 years ago
oh, yeah, sandbox-exec is fun. for the record, the exact scheme they use is tinyscheme. the whole facility is largely undocumented, but it still somehow manages to be friendlier than seccomp -- i remember learning about it in a talk on the nix macos effort<p>you can “enjoy” the sight of some c++ directly generating scheme here: <a href="https:&#x2F;&#x2F;github.com&#x2F;NixOS&#x2F;nix&#x2F;blob&#x2F;2.9.2&#x2F;src&#x2F;libstore&#x2F;build&#x2F;local-derivation-goal.cc#L1915-L1967" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;NixOS&#x2F;nix&#x2F;blob&#x2F;2.9.2&#x2F;src&#x2F;libstore&#x2F;build&#x2F;l...</a>
评论 #31979956 未加载
astrangealmost 3 years ago
This is a confusing title because “App Sandbox” is the name of the (somewhat different) sandboxing and container mechanism used by, well, apps.
meatjuicealmost 3 years ago
LGTM. Is it really deprecated?
评论 #31973393 未加载
评论 #31974738 未加载
评论 #31973451 未加载
评论 #31976275 未加载
GoOnThenDoTellalmost 3 years ago
Can this provide something like linux’s unshare?