Skip to content

Commit

Permalink
templates/shizuku.root: Fix shizuku service unable to run properly (t…
Browse files Browse the repository at this point in the history
…iann#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 <[email protected]>
  • Loading branch information
Rem01Gaming authored and backslashxx committed Dec 27, 2024
1 parent c68b4be commit fe0ccd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website/docs/public/templates/shizuku.root
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"id":"shizuku.root",
"name":"Shizuku Service",
"author":"JohnRTitor",
"author":"Rem01Gaming & JohnRTitor",
"description":"Only essential permissions to start Shizuku service.",
"uid":0,
"gid":0,
"groups":[
"SHELL"
],
"capabilities":[
"CAP_DAC_READ_SEARCH"
"CAP_DAC_OVERRIDE",
"CAP_CHOWN"
],
"context":"u:r:su:s0",
"namespace":"INHERITED",
Expand Down

0 comments on commit fe0ccd1

Please sign in to comment.