Open _PATH_DEVNULL before entering capability mode. Access to /dev/null is needed for dup2() when piping commands.
Details
Details
- Reviewers
markj emaste - Commits
- rG7428ebfe7e25: syslogd: Pre-open null file descriptor
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
The nulldesc descriptor is used in waitdaemon() so open it prior to calling waitdaemon()