Mercurial > hg > dhcpcd
comparison src/privsep-root.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 | 7fb0274b9127 |
| children |
comparison
equal
deleted
inserted
replaced
| 5525:26b5d9bc2985 | 5526:b1a3d9055662 |
|---|---|
| 45 ssize_t ps_root_unlink(struct dhcpcd_ctx *, const char *); | 45 ssize_t ps_root_unlink(struct dhcpcd_ctx *, const char *); |
| 46 ssize_t ps_root_filemtime(struct dhcpcd_ctx *, const char *, time_t *); | 46 ssize_t ps_root_filemtime(struct dhcpcd_ctx *, const char *, time_t *); |
| 47 ssize_t ps_root_readfile(struct dhcpcd_ctx *, const char *, void *, size_t); | 47 ssize_t ps_root_readfile(struct dhcpcd_ctx *, const char *, void *, size_t); |
| 48 ssize_t ps_root_writefile(struct dhcpcd_ctx *, const char *, mode_t, | 48 ssize_t ps_root_writefile(struct dhcpcd_ctx *, const char *, mode_t, |
| 49 const void *, size_t); | 49 const void *, size_t); |
| 50 ssize_t ps_root_logreopen(struct dhcpcd_ctx *); | |
| 50 ssize_t ps_root_script(struct dhcpcd_ctx *, const void *, size_t); | 51 ssize_t ps_root_script(struct dhcpcd_ctx *, const void *, size_t); |
| 51 int ps_root_getauthrdm(struct dhcpcd_ctx *, uint64_t *); | 52 int ps_root_getauthrdm(struct dhcpcd_ctx *, uint64_t *); |
| 52 #ifdef PRIVSEP_GETIFADDRS | 53 #ifdef PRIVSEP_GETIFADDRS |
| 53 int ps_root_getifaddrs(struct dhcpcd_ctx *, struct ifaddrs **); | 54 int ps_root_getifaddrs(struct dhcpcd_ctx *, struct ifaddrs **); |
| 54 #endif | 55 #endif |
