HomeFreeBSD

syslogd: Do not add shutdown sockets to the kqueue

Description

syslogd: Do not add shutdown sockets to the kqueue

If syslogd is in secure mode, all INET sockets are shutdown. Do not
add these to the kqueue because we can't read from them.

Also, remove the listen() call when setting up sockets. Syslogd
exclusively uses SOCK_DGRAM sockets, so calling listen() is useless.

Reviewed by: markj
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41526

Details

Provenance
jfreeAuthored on Sep 1 2023, 2:51 AM
markjCommitted on Sep 28 2023, 3:51 PM
Reviewer
markj
Differential Revision
D41526: syslogd: Do not add shutdown sockets to the kqueue
Parents
rG8536447a07fa: syslogd: Use pipe to communicate with daemon
Branches
Unknown
Tags
Unknown