diff src/dhcpcd.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 4492d1d88fdd
line wrap: on
line diff
--- a/src/dhcpcd.h	Fri Oct 30 03:43:51 2020 +0000
+++ b/src/dhcpcd.h	Fri Oct 30 14:19:16 2020 +0000
@@ -199,7 +199,7 @@
 	struct passwd *ps_user;	/* struct passwd for privsep user */
 	pid_t ps_root_pid;
 	int ps_root_fd;		/* Privileged Actioneer commands */
-	int ps_syslog_fd;	/* syslog(3) wrapper */
+	int ps_log_fd;		/* chroot logging */
 	int ps_data_fd;		/* Data from root spawned processes */
 	struct eloop *ps_eloop;	/* eloop for polling root data */
 	struct ps_process_head ps_processes;	/* List of spawned processes */