HomeFreeBSD

syslogd: Pre-open null file descriptor

Description

syslogd: Pre-open null file descriptor

Open _PATH_DEVNULL before entering capability mode. Access to /dev/null
is needed for dup2() when piping commands.

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

Details

Provenance
jfreeAuthored on Sep 1 2023, 2:51 AM
markjCommitted on Sep 28 2023, 3:51 PM
Reviewer
markj
Differential Revision
D41381: syslogd: Pre-open null file descriptor
Parents
rGc3175a6e1c5a: syslogd: Do not open console descriptor
Branches
Unknown
Tags
Unknown