freebsd-src/usr.sbin/syslogd
Mark Johnston 88dd055092
Some checks are pending
Cross-build Kernel / ${{ matrix.target_arch }} ${{ matrix.os }} (${{ matrix.compiler }}) (clang-14, /usr/lib/llvm-14/bin, ubuntu-22.04, bmake libarchive-dev clang-14 lld-14, amd64, amd64) (push) Waiting to run
Cross-build Kernel / ${{ matrix.target_arch }} ${{ matrix.os }} (${{ matrix.compiler }}) (clang-14, /usr/lib/llvm-14/bin, ubuntu-22.04, bmake libarchive-dev clang-14 lld-14, arm64, aarch64) (push) Waiting to run
Cross-build Kernel / ${{ matrix.target_arch }} ${{ matrix.os }} (${{ matrix.compiler }}) (clang-18, /opt/homebrew/opt/llvm@18/bin, macos-latest, bmake libarchive llvm@18, amd64, amd64) (push) Waiting to run
Cross-build Kernel / ${{ matrix.target_arch }} ${{ matrix.os }} (${{ matrix.compiler }}) (clang-18, /opt/homebrew/opt/llvm@18/bin, macos-latest, bmake libarchive llvm@18, arm64, aarch64) (push) Waiting to run
Cross-build Kernel / ${{ matrix.target_arch }} ${{ matrix.os }} (${{ matrix.compiler }}) (clang-18, /usr/lib/llvm-18/bin, ubuntu-24.04, bmake libarchive-dev clang-18 lld-18, amd64, amd64) (push) Waiting to run
Cross-build Kernel / ${{ matrix.target_arch }} ${{ matrix.os }} (${{ matrix.compiler }}) (clang-18, /usr/lib/llvm-18/bin, ubuntu-24.04, bmake libarchive-dev clang-18 lld-18, arm64, aarch64) (push) Waiting to run
syslogd: Fix handling of unix socket modes
When bind() is called, the process umask is applied, so one has to
either clear the umask before binding or call chmod() to add permissions
after the fact.  Do the former here to ensure that the socket always has
the correct mode.

Reported by:	Lexi Winter <lexi@le-fay.org>
Fixes:		2b8c3a05e0 ("syslogd: Set unix socket modes atomically")
2024-11-05 18:24:03 +00:00
..
tests syslogd: Ignore getaddrinfo() errors if -ss is specified 2024-09-19 10:01:37 +00:00
ftp.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lpr.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
pathnames.h usr.sbin: Remove ancient SCCS tags. 2023-11-26 22:23:56 -07:00
ppp.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
syslog.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
syslog.conf.5 usr.sbin: Remove ancient SCCS tags. 2023-11-26 22:23:56 -07:00
syslogd.8 usr.sbin: Remove ancient SCCS tags. 2023-11-26 22:23:56 -07:00
syslogd.c syslogd: Fix handling of unix socket modes 2024-11-05 18:24:03 +00:00