Skip to content

Add fanotify fallback for WSL support#68

Draft
navanchauhan wants to merge 1 commit intomainfrom
navan/wsl-support
Draft

Add fanotify fallback for WSL support#68
navanchauhan wants to merge 1 commit intomainfrom
navan/wsl-support

Conversation

@navanchauhan
Copy link
Copy Markdown
Collaborator

Summary

  • defer LSM backend selection until startup and fall back to fanotify when BPF LSM is unavailable
  • enforce file-open and exec policies through fanotify while preserving shared log events for the UI
  • join the target PID namespace from leashd so the fallback can mark /proc/1/root

Testing

  • go test ./internal/lsm ./internal/leashd ./internal/runner
  • make build
  • LEASH_IMAGE=leash:local-wsl2 make docker-leash-prebuilt

@navanchauhan navanchauhan marked this pull request as draft March 11, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant