forked from SynoCommunity/spksrc
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patched out the privilege check as it wasn't working even with the co…
…rrect capabilities.
- Loading branch information
1 parent
3685569
commit 92fbcf5
Showing
6 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
cross/adguardhome/patches/fix-unprivilaged-ports-check.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/internal/aghnet/net_linux.go | ||
+++ b/internal/aghnet/net_linux.go | ||
@@ -22,6 +22,7 @@ | ||
const dhcpcdConf = "etc/dhcpcd.conf" | ||
|
||
func canBindPrivilegedPorts() (can bool, err error) { | ||
+ return true, nil | ||
res, err := unix.PrctlRetInt( | ||
unix.PR_CAP_AMBIENT, | ||
unix.PR_CAP_AMBIENT_IS_SET, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[{ | ||
"step_title": "Install Instructions", | ||
"items": [{ | ||
"desc": "Please unselect 'Run after installation', To run adguard you need to rirst run the following command via SSH and everytime there is an update" | ||
"desc": "Please <b style=\"color: red\">unselect 'Run after installation'</b>, To run adguard you need to first run the following command via SSH and everytime there is an update" | ||
}, { | ||
"desc": "setcap 'CAP_NET_BIND_SERVICE=+eip CAP_NET_RAW=+eip' /var/packages/adguardhome/target/bin/adguardhome" | ||
"desc": "<code style=\"user-select: text\">setcap 'CAP_NET_BIND_SERVICE=+eip CAP_NET_RAW=+eip' /var/packages/adguardhome/target/bin/adguardhome</code>" | ||
}] | ||
}] |