[PR #2598] [MERGED] Drop privileges on Unix-family platforms #3172

Closed
opened 2026-03-16 11:29:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/2598
Author: @marcus0x62
Created: 11/21/2024
Status: Merged
Merged: 11/27/2024
Merged by: @djc

Base: mainHead: drop_privileges


📝 Commits (1)

  • ddd6cb9 Drop privileges on Unix-family platforms

📊 Changes

8 files changed (+130 additions, -0 deletions)

View changed files

📝 Cargo.lock (+1 -0)
📝 Cargo.toml (+1 -0)
📝 bin/Cargo.toml (+3 -0)
📝 bin/src/hickory-dns.rs (+92 -0)
📝 bin/src/lib.rs (+24 -0)
📝 conformance/packages/dns-test/src/templates/hickory.name-server.toml.jinja (+3 -0)
📝 conformance/packages/dns-test/src/templates/hickory.resolver.toml.jinja (+3 -0)
📝 tests/e2e-tests/src/resolver/do_not_query.toml.jinja (+3 -0)

📄 Description

This adds a function to check if Hickory is running as root, and if so, to drop privileges, either to a user-specified user/group or, if unspecified, to nobody/nobody.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/2598 **Author:** [@marcus0x62](https://github.com/marcus0x62) **Created:** 11/21/2024 **Status:** ✅ Merged **Merged:** 11/27/2024 **Merged by:** [@djc](https://github.com/djc) **Base:** `main` ← **Head:** `drop_privileges` --- ### 📝 Commits (1) - [`ddd6cb9`](https://github.com/hickory-dns/hickory-dns/commit/ddd6cb96eb133a9940b1adc05794ec7a226e4da0) Drop privileges on Unix-family platforms ### 📊 Changes **8 files changed** (+130 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+1 -0) 📝 `Cargo.toml` (+1 -0) 📝 `bin/Cargo.toml` (+3 -0) 📝 `bin/src/hickory-dns.rs` (+92 -0) 📝 `bin/src/lib.rs` (+24 -0) 📝 `conformance/packages/dns-test/src/templates/hickory.name-server.toml.jinja` (+3 -0) 📝 `conformance/packages/dns-test/src/templates/hickory.resolver.toml.jinja` (+3 -0) 📝 `tests/e2e-tests/src/resolver/do_not_query.toml.jinja` (+3 -0) </details> ### 📄 Description This adds a function to check if Hickory is running as root, and if so, to drop privileges, either to a user-specified user/group or, if unspecified, to nobody/nobody. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 11:29:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#3172
No description provided.