Files
freebsd/usr.sbin/certctl
Lexi Winter 02f174179a certctl: Enforce 0444 mode on new files
When writing to a file, call fchmod() to ensure the file mode matches
the intended mode, which is 0444.  This was already done when replacing
an existing file, but not when creating a new file, which meant if the
process umask was 077, the resulting certificates and bundle would be
unreadable by unprivileged users.

MFC after:	1 week
Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D58304
2026-07-19 13:45:43 +01:00
..
2025-08-18 16:28:29 +02:00