sandlock icon indicating copy to clipboard operation
sandlock copied to clipboard

fs_denied/deny_path deny-bypass via seccomp-time path check (non-chroot mode)

Open congwang-mk opened this issue 5 months ago • 0 comments

  • Surface: seccomp/notif.rs:1339 precheck → is_path_denied_for_notif returns EACCES else Continues; kernel re-resolves on execution. canonicalize in the supervisor is a separate, racy resolution.
  • Condition: non-chroot mode, with a deny carve-out that sits inside a Landlock-granted tree (the only case fs_denied is load-bearing).
  • Fix space: on-behalf open with race-safe resolution + fd injection, or the SECCOMP_IOCTL_NOTIF_PIN_ARGS kernel primitive already floated in the thread. Found by @1lann in https://github.com/multikernel/sandlock/issues/27.

congwang-mk avatar Jun 23 '26 03:06 congwang-mk