void-linux / void-linux/void-packages

dhcpcd: doesn't run as the system user

Open
#59,312 2 comments 0 reactions 0 assignees View on GitHub

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
  1. ln -s /etc/sv/dhcpcd /var/service
  2. Use any convenient way to check the process owner.
  3. It runs as root

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.