diff options
| author | Roy Marples <roy@marples.name> | 2020-05-24 05:47:14 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-05-24 05:47:14 +0000 |
| commit | 12b0db43b2a139744fbcf04824390fcb1de445ea (patch) | |
| tree | 5cde5e68c8d6710d707d8a54da0de97d856b7602 /src/ipv6.c | |
| parent | c572835e98da5a186f7453f3daa2aec765ef2d9b (diff) | |
| download | dhcpcd-12b0db43b2a139744fbcf04824390fcb1de445ea.tar.xz | |
privsep: Allow Linux to work without needing any mounts
Diffstat (limited to 'src/ipv6.c')
| -rw-r--r-- | src/ipv6.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1106,6 +1106,13 @@ ipv6_anyglobal(struct interface *sifp) if (ifp != sifp && !forwarding) continue; #else +#if defined(PRIVSEP) && defined(__linux__) + if (IN_PRIVSEP(sifp->ctx)) { + if (ifp != sifp && + ps_root_ip6forwarding(sifp->ctx, ifp->name) != 1) + continue; + } else +#endif if (ifp != sifp && ip6_forwarding(ifp->name) != 1) continue; #endif |
