summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-09-19 14:40:50 +0100
committerRoy Marples <roy@marples.name>2020-09-19 14:40:50 +0100
commit1efd31813fde826b000fbc40234ea89979ef73a8 (patch)
treeff8f26cb8e5a13f34ebc319fe107e0ce4d77afbe /src/privsep-root.h
parent11963d2088a68a18ea61f27584a9339cd0292cac (diff)
downloaddhcpcd-1efd31813fde826b000fbc40234ea89979ef73a8.tar.xz
Linux: detect network namespace and deny udev in one
udev says whether an interface name is stable or not. In a network namespace, udev claims the interface does not exist. This makes sense because udev only operates in the root namespace. As such disable udev in a network namespace. While here correctly spell initialise.
Diffstat (limited to 'src/privsep-root.h')
-rw-r--r--src/privsep-root.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/privsep-root.h b/src/privsep-root.h
index 5d6e1248..146622b1 100644
--- a/src/privsep-root.h
+++ b/src/privsep-root.h
@@ -67,7 +67,7 @@ ssize_t ps_root_sendnetlink(struct dhcpcd_ctx *, int, struct msghdr *);
#endif
#ifdef PLUGIN_DEV
-int ps_root_dev_initialized(struct dhcpcd_ctx *, const char *);
+int ps_root_dev_initialised(struct dhcpcd_ctx *, const char *);
int ps_root_dev_listening(struct dhcpcd_ctx *);
#endif