Mercurial > hg > dhcpcd
diff src/logerr.h @ 5526:b1a3d9055662 draft
privsep: Allow logfile reopening in a chroot
Now that only the privileged actioneer does the actual logging
we can safely reopen the file we are logging to.
This also closes and re-opens the syslog connection.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Fri, 30 Oct 2020 14:19:16 +0000 |
| parents | 26b5d9bc2985 |
| children | 071a9ea18363 |
line wrap: on
line diff
--- a/src/logerr.h Fri Oct 30 03:43:51 2020 +0000 +++ b/src/logerr.h Fri Oct 30 14:19:16 2020 +0000 @@ -76,10 +76,10 @@ #define logerr(...) log_err(__VA_ARGS__) #define logerrx(...) log_errx(__VA_ARGS__) -/* For syslog in a chroot */ -int loggetsyslogfd(void); -void logsetsyslogfd(int); -int loghandlesyslogfd(int); +/* For logging in a chroot */ +int loggetfd(void); +void logsetfd(int); +int logreadfd(int); unsigned int loggetopts(void); void logsetopts(unsigned int);
