Skip to content

Commit 9569123

Browse files
committed
fix(sandbox): restore BestEffort as default Landlock compatibility
The Landlock V2 upgrade in #151 changed the default from BestEffort to HardRequirement. This causes all proxy-mode sandboxes to crash with Permission denied when the policy omits the landlock field, because the child process gets locked to only /etc/navigator-tls and /sandbox. Restore BestEffort as the default so policies without an explicit landlock field degrade gracefully. Fixes #161
1 parent bd63910 commit 9569123

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎crates/navigator-sandbox/src/policy.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ pub struct ProcessPolicy {
8686

8787
#[derive(Debug, Clone, Default)]
8888
pub enum LandlockCompatibility {
89-
BestEffort,
9089
#[default]
90+
BestEffort,
9191
HardRequirement,
9292
}
9393

0 commit comments

Comments
 (0)