Repository navigation
Commit 4dc5fff
committed
fix(daemon): trust /home as a root-owned alias on FreeBSD
private_log_directory_path_copy resolves a small allowlist of trusted
top-level aliases before its component-wise O_NOFOLLOW path walk
(Darwin's /tmp -> /private/tmp and /var -> /private/var).
FreeBSD commonly exposes /home as a symlink to /usr/home. Treat it as a
trusted root-owned alias so log directory paths under /home resolve
correctly during the secure path walk.
Signed-off-by: Pedro Ramos <131530838+pr9000@users.noreply.github.com>1 parent f6a4d7f commit 4dc5fff
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1336 | 1336 | | |
1337 | 1337 | | |
1338 | 1338 | | |
1339 | | - | |
| 1339 | + | |
1340 | 1340 | | |
1341 | | - | |
| 1341 | + | |
| 1342 | + | |
1342 | 1343 | | |
1343 | 1344 | | |
1344 | | - | |
| 1345 | + | |
1345 | 1346 | | |
1346 | 1347 | | |
1347 | 1348 | | |
| |||
0 commit comments