mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
Check what are our options for woking without root on Linux #1350
Labels
No labels
P1: Critical
P2: High
P3: Medium
P4: Low
UI
bug
cannot reproduce
compatibility
dependencies
docker
documentation
duplicate
enhancement
enhancement
external libs
feature request
good first issue
help wanted
infrastructure
invalid
localization
needs investigation
performance
potential-duplicate
question
recurrent
research
snap
waiting for data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AdGuardHome#1350
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ameshkov on GitHub (Mar 3, 2020).
Originally assigned to: @szolin on GitHub.
Maybe, we can make it this way (we should test it):
If CAP_NET_BIND_SERVICE is persisted, we'll need to extend this task and explain what additional console actions we'll add.
This comment can be useful:
https://github.com/AdguardTeam/AdGuardHome/issues/1193#issuecomment-576862627
@szolin commented on GitHub (Mar 3, 2020):
Unfortunately, there's no way we can maintain CAP_NET_BIND_SERVICE flag set on a binary file after it's replaced. We also can't replace the files owned by root user after we do setuid().
So auto-upgrade isn't possible.
After we do setuid(), we won't be able to restart DNS module or enable DOH module at runtime, unless we have CAP_NET_BIND_SERVICE flag set by root user.
In general, what is possible:
user=aghome/group=aghomeconfiguration settingsPros:
Cons:
@ameshkov commented on GitHub (Mar 6, 2020):
Well, losing auto-upgrade is really painful.
Let's proceed with a simpler approach: