]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
control: remove unprivileged socket master
authorRoy Marples <roy@marples.name>
Mon, 3 Aug 2026 12:38:54 +0000 (13:38 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Aug 2026 12:38:54 +0000 (13:38 +0100)
commite3363cf477aa53d4ed74d00ce5d3d4c7e5b7f2c3
treef70eccdbe1acb334ba0072c4ec80f4cc52c75dd4
parent8b312918d8f1885d7fe8fcc03a7e06ae8a0314b4
control: remove unprivileged socket

Instead workout credentials from the connected socket
by getpeereid(2).
Remove the limit of only one connected control client.
Add readgroup, to so we can deny reading of dhcpcd interface
data to everyone on the system.

Always send back a result code to socket callers. This is a breaking ABI change, but allows dhcpcd-online, dhcpcd-gtk etc to display EPERM for example.
20 files changed:
compat/getpeereid.c [new file with mode: 0644]
compat/getpeereid.h [new file with mode: 0644]
configure
src/control.c
src/control.h
src/defs.h
src/dhcpcd.8.in
src/dhcpcd.c
src/dhcpcd.conf.5.in
src/dhcpcd.h
src/eloop.c
src/if-options.c
src/if-options.h
src/privsep-control.c
src/privsep-control.h
src/privsep-root.c
src/privsep-root.h
src/privsep.c
src/privsep.h
src/script.c