Commit 3925d67
authored
fix: add user-configured allowRead paths to Landlock ruleset (#8)
ApplyLandlockFromConfig was not processing cfg.Filesystem.AllowRead
paths, causing them to be blocked by Landlock despite bwrap mounting
them correctly as read-only. This made files like ~/.gitconfig
inaccessible inside the sandbox when using DefaultDenyRead mode.
Closes #61 parent a953aba commit 3925d67
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
155 | 174 | | |
156 | 175 | | |
157 | 176 | | |
| |||
0 commit comments