Skip to content

Explicitly request NET_RAW privileges - #1142

Merged
frenck merged 1 commit into
hassio-addons:mainfrom
agners:add-net-raw
Sep 18, 2026
Merged

frenck merged 1 commit into
hassio-addons:mainfrom
agners:add-net-raw

Conversation

@agners

@agners agners commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Proposed Changes

Today by default Supervisor/Docker grants NET_RAW capabilities to all apps. This might change in the future. Explicitly request NET_RAW privileges which are required by utilities like nmap, tcpdump and mtr they all are raw-socket tools.

Related Issues

home-assistant/supervisor#7230

Summary by CodeRabbit

  • Chores
    • Updated the SSH add-on configuration to support raw network operations.

Today by default Supervisor/Docker grants NET_RAW capabilities to all
apps. This might change in the future. Explicitly request NET_RAW
privileges which are required by utilities like nmap, tcpdump and mtr
they all are raw-socket tools.
@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: e6fd10c8-e6bc-462f-a972-f81c90006ee7

📥 Commits

Reviewing files that changed from the base of the PR and between 0282f17 and 0e288cc.

📒 Files selected for processing (1)
  • ssh/config.yaml

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


Walkthrough

The SSH add-on configuration now includes the NET_RAW Linux capability in its privileged capability list.

Changes

SSH capability configuration

Layer / File(s) Summary
Privileged capability list
ssh/config.yaml
Adds NET_RAW to the existing privileged capabilities.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 0e288

The requested NET_RAW capability is intentionally added for SSH raw-socket utilities, with no concrete merge-blocking risk identified.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: explicitly requesting the NET_RAW capability for the SSH app.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the socket gate
NET_RAW joins the list in place
The SSH shell hops along
With one new power in its song
Configured, clear, and strong

Comment @coderabbitai help to get the list of available commands.

@frenck frenck added the enhancement Enhancement of the code, not introducing new features. label Sep 18, 2026
@frenck
frenck merged commit 21545ff into hassio-addons:main Sep 18, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement of the code, not introducing new features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants