Skip to content

Add ability for device/network scan when rootless#1700

Merged
seriousm4x merged 3 commits intoseriousm4x:masterfrom
invario:rootless-scan
Mar 19, 2026
Merged

Add ability for device/network scan when rootless#1700
seriousm4x merged 3 commits intoseriousm4x:masterfrom
invario:rootless-scan

Conversation

@invario
Copy link
Copy Markdown
Contributor

@invario invario commented Mar 15, 2026

In the same way PR #1586 can raise the NET_RAW privilege on demand to perform privileged ping without root, the network device scan section that uses nmap can do the same by raising NET_RAW, setting it as inheritable and ambient. Additionally, nmap must have the --privileged flag passed to it. Otherwise, it will default to unprivileged when it detects that it is not running as root, which will cause the network device scan to fail.

Signed-off-by: invario <67800603+invario@users.noreply.github.com>
@seriousm4x seriousm4x merged commit 9dac3e9 into seriousm4x:master Mar 19, 2026
1 check passed
@invario
Copy link
Copy Markdown
Contributor Author

invario commented Mar 19, 2026

Thanks for fixes and merge! I completely forgot to change those err messages when pasting, haha.

@invario invario deleted the rootless-scan branch March 19, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants