From e85646fad4eef75f461742e32432b95f034cc2d2 Mon Sep 17 00:00:00 2001 From: Masum Reza <50095635+JohnRTitor@users.noreply.github.com> Date: Wed, 21 Feb 2024 07:27:23 +0530 Subject: [PATCH] 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. --- website/docs/public/templates/adaway.root | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 website/docs/public/templates/adaway.root diff --git a/website/docs/public/templates/adaway.root b/website/docs/public/templates/adaway.root new file mode 100644 index 00000000..f454d392 --- /dev/null +++ b/website/docs/public/templates/adaway.root @@ -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":"অ্যাডঅ্যাওয়ে সিস্টেমের হোস্ট ফাইল পরিবর্তন এবং ওয়েবসার্ভার চালু করতে কমপক্ষে যা অনুমতি লাগে।" + } + } +}