oxidecomputer / oxidecomputer/maghemite

Drop privileges for service runners

Open
#701 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ddm mgd
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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.