diff options
| author | Roy Marples <roy@marples.name> | 2020-10-30 14:19:16 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-10-30 14:19:16 +0000 |
| commit | c963b6033c4bf32c4c72c725f05a0374d32bd370 (patch) | |
| tree | 0ed95cc585db277566a1d3a8f7bafb4124286c75 /src/privsep-root.h | |
| parent | c3069de559a30980fa5c72af7e483d912f010002 (diff) | |
| download | dhcpcd-c963b6033c4bf32c4c72c725f05a0374d32bd370.tar.xz | |
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.
Diffstat (limited to 'src/privsep-root.h')
| -rw-r--r-- | src/privsep-root.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/privsep-root.h b/src/privsep-root.h index 146622b1..9d8a1597 100644 --- a/src/privsep-root.h +++ b/src/privsep-root.h @@ -47,6 +47,7 @@ ssize_t ps_root_filemtime(struct dhcpcd_ctx *, const char *, time_t *); ssize_t ps_root_readfile(struct dhcpcd_ctx *, const char *, void *, size_t); ssize_t ps_root_writefile(struct dhcpcd_ctx *, const char *, mode_t, const void *, size_t); +ssize_t ps_root_logreopen(struct dhcpcd_ctx *); ssize_t ps_root_script(struct dhcpcd_ctx *, const void *, size_t); int ps_root_getauthrdm(struct dhcpcd_ctx *, uint64_t *); #ifdef PRIVSEP_GETIFADDRS |
