void-linux / void-linux/void-packages
dhcpcd: doesn't run as the system user
Open
Nobody has claimed this yet.
bug
needs-testing
- Dominant language
- Shell
- Stars
- 3.4k
- Forks
- 2.8k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 299
Description
Is this a new report?
Yes
System Info
Void amd64 glibc latest
Package(s) Affected
dhcpcd
Does a report exist for this bug with the project's home (upstream) and/or another distro?
No response
Expected behaviour
The daemon should use its own system _dhcpcd user, not root. It is a common sense, that services run as system users. Would be nice to have more system users, lets say, for iwd.
Actual behaviour
It runs as root according to multiple sources.
Steps to reproduce
ln -s /etc/sv/dhcpcd /var/service- Use any convenient way to check the process owner.
- It runs as root
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the dhcpcd service at /etc/sv/dhcpcd and the dhcpcd package configuration. Check how the service process owner is selected and how system users are defined. The change is done when dhcpcd runs as its own _dhcpcd system user rather than root.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100