Added adaway.root template (#1337)

Adaway only needs the following permissions to work properly:
DAC_OVERRIDE, SYS_PTRACE.

Note: [systemless hosts kernelsu
module](https://github.com/symbuzzer/systemless-hosts-KernelSU-module)
needs to be installed, to add support.

This PR only addresses the minimal permission requirements of Adaway to
let it modify hosts file.
This commit is contained in:
Masum Reza
2024-02-21 07:27:23 +05:30
committed by GitHub
parent 4969c5f548
commit e85646fad4

View File

@@ -0,0 +1,24 @@
{
"id":"adaway.root",
"name":"Adaway Root",
"author":"JohnRTitor",
"description":"Only essential permissions to let Adaway modify hosts file and operate a web server.",
"uid":0,
"gid":0,
"groups":[
"ROOT"
],
"capabilities":[
"CAP_DAC_OVERRIDE",
"CAP_NET_BIND_SERVICE",
"CAP_SYS_PTRACE"
],
"context":"u:r:su:s0",
"namespace":"INHERITED",
"locales": {
"bn": {
"name": "অ্যাডঅ্যাওয়ে রুট",
"description":"অ্যাডঅ্যাওয়ে সিস্টেমের হোস্ট ফাইল পরিবর্তন এবং ওয়েবসার্ভার চালু করতে কমপক্ষে যা অনুমতি লাগে।"
}
}
}