Skip to content
Discussion options

You must be logged in to vote

Yes, on macOS there is an option I missed above: allow_parent_of_protected. Without it, a grant that contains nono's state dir is refused. With it, nono allows the grant and adds Seatbelt deny rules for ~/.nono and $XDG_STATE_HOME/nono, so the state stays protected. It's documented in the profile authoring guide (section "Allowing parent-of-protected-root grants (macOS only)") and ignored on Linux, where Landlock can't deny a child of an allowed parent.

{
  "meta": { "name": "real-home" },
  "extends": "default",
  "allow_parent_of_protected": true,
  "workdir": { "access": "readwrite" },
  "filesystem": { "allow": ["$HOME"] }
}

I ran this on 0.81.0 (arm64 Mac, HOME pointed at a throwaway…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@dgesteves
Comment options

Answer selected by lawm
@lawm
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants