templates/shizuku.root: Fix shizuku service unable to run properly (#2319)

## Shizuku needs DAC_OVERRIDE and CHOWN capabilities to work properly
previous settings only grant `DAC_READ_SEARCH` causing Shizuku unable to
chown service executable and making it unable to work properly.
`DAC_OVERRIDE` capability added to allow Shizuku to execute it's service
after chown.

---

### Before Fix

![IMG_20241226_210507_769](https://github.com/user-attachments/assets/cea7329c-e393-4d8b-88cf-83be086971e5)

---
### After Fix

![IMG_20241226_211118_445](https://github.com/user-attachments/assets/e12a7aa8-2ee6-4bea-baca-47b99a4f8a44)

Signed-off-by: Rem01Gaming <Rem01_Gaming@proton.me>
This commit is contained in:
Rem01Gaming
2024-12-26 22:11:05 +07:00
committed by GitHub
parent d3ed55f1eb
commit 946391d697

View File

@@ -1,7 +1,7 @@
{ {
"id":"shizuku.root", "id":"shizuku.root",
"name":"Shizuku Service", "name":"Shizuku Service",
"author":"JohnRTitor", "author":"Rem01Gaming & JohnRTitor",
"description":"Only essential permissions to start Shizuku service.", "description":"Only essential permissions to start Shizuku service.",
"uid":0, "uid":0,
"gid":0, "gid":0,
@@ -9,7 +9,8 @@
"SHELL" "SHELL"
], ],
"capabilities":[ "capabilities":[
"CAP_DAC_READ_SEARCH" "CAP_DAC_OVERRIDE",
"CAP_CHOWN"
], ],
"context":"u:r:su:s0", "context":"u:r:su:s0",
"namespace":"INHERITED", "namespace":"INHERITED",