oxidecomputer / oxidecomputer/maghemite
Drop privileges for service runners
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 94
- Forks
- 6
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 12
Description
Currently mgd and ddmd run as root without dropping any privileges. This is true for both daemons in the switch zone, as well as ddm that runs in the global zone. This is likely not necessary and these daemons should only carry the exact set of privileges they need to function.
Contributor guide
No contributing guide indexed for this repository
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 locating the service-runner entry points for mgd and ddmd, including ddm in the global zone, and trace how each daemon starts in the switch and global zones. Determine the minimum privileges each daemon needs, then verify that all three services run successfully with only those privileges.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100