Mercurial > hg > dhcpcd
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 5525:26b5d9bc2985 | 5526:b1a3d9055662 |
|---|---|
| 197 | 197 |
| 198 #ifdef PRIVSEP | 198 #ifdef PRIVSEP |
| 199 struct passwd *ps_user; /* struct passwd for privsep user */ | 199 struct passwd *ps_user; /* struct passwd for privsep user */ |
| 200 pid_t ps_root_pid; | 200 pid_t ps_root_pid; |
| 201 int ps_root_fd; /* Privileged Actioneer commands */ | 201 int ps_root_fd; /* Privileged Actioneer commands */ |
| 202 int ps_syslog_fd; /* syslog(3) wrapper */ | 202 int ps_log_fd; /* chroot logging */ |
| 203 int ps_data_fd; /* Data from root spawned processes */ | 203 int ps_data_fd; /* Data from root spawned processes */ |
| 204 struct eloop *ps_eloop; /* eloop for polling root data */ | 204 struct eloop *ps_eloop; /* eloop for polling root data */ |
| 205 struct ps_process_head ps_processes; /* List of spawned processes */ | 205 struct ps_process_head ps_processes; /* List of spawned processes */ |
| 206 pid_t ps_inet_pid; | 206 pid_t ps_inet_pid; |
| 207 int ps_inet_fd; /* Network Proxy commands and data */ | 207 int ps_inet_fd; /* Network Proxy commands and data */ |
