]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
Linux: detect network namespace and deny udev in one
authorRoy Marples <roy@marples.name>
Sat, 19 Sep 2020 13:40:50 +0000 (14:40 +0100)
committerRoy Marples <roy@marples.name>
Sat, 19 Sep 2020 13:40:50 +0000 (14:40 +0100)
commit1efd31813fde826b000fbc40234ea89979ef73a8
treeff8f26cb8e5a13f34ebc319fe107e0ce4d77afbe
parent11963d2088a68a18ea61f27584a9339cd0292cac
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.
src/dev.c
src/dev.h
src/dev/udev.c
src/dhcpcd.h
src/if-linux.c
src/if.c
src/if.h
src/privsep-root.c
src/privsep-root.h