summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-24 05:47:14 +0000
committerRoy Marples <roy@marples.name>2020-05-24 05:47:14 +0000
commit12b0db43b2a139744fbcf04824390fcb1de445ea (patch)
tree5cde5e68c8d6710d707d8a54da0de97d856b7602 /src/ipv6.c
parentc572835e98da5a186f7453f3daa2aec765ef2d9b (diff)
downloaddhcpcd-12b0db43b2a139744fbcf04824390fcb1de445ea.tar.xz
privsep: Allow Linux to work without needing any mounts
Diffstat (limited to 'src/ipv6.c')
-rw-r--r--src/ipv6.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index c1e23588..71b51bc7 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -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