Repository navigation
v2.5.1 — Session log hardening
·
233 commits
to develop
since this release
Immutable
release. Only release title and notes can be modified.
Security
- Session log refuses anything but a regular file (overdrive contract rule 2).
src/sessionlog.tsnow opens the log withO_WRONLY|O_APPEND|O_CREAT|O_NOFOLLOW|O_NONBLOCK(mode0600) and checks the open handle withfstatbefore its one write. A symlink planted at the log path no longer redirects the append into its target; a directory or fifo at the log path gets nothing written and never blocks. Errors stay swallowed. On a platform withoutO_NOFOLLOWthe helper writes nothing.