Commit a8efa93
committed
fix(report): adapt landlock passthrough for report file
Report writing only worked if the report was being written to a child
location of the extract directory. This was a byproduct of setting
rw permissions on the extraction directory.
It did not work when the report file was being written to a location
that is unrelated to the extraction directory.
Fixed by requesting rw access to the report's file parent directory.
I tried to get smart by only allowing make_reg and read_write on the
file, but it never fully worked because of file truncation and the
fact that LANDLOCK_ACCESS_FS_TRUNCATE is only available since ABI
version 3 in landlock.1 parent 90dd7fa commit a8efa93
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
0 commit comments