Fix restorecon

This commit is contained in:
vvb2060
2023-04-04 02:34:16 -07:00
committed by John Wu
parent a18a440236
commit 69529ac59c
8 changed files with 16 additions and 21 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ int app_request(const su_context &ctx) {
gen_rand_str(fifo + 12, 32);
mkfifo(fifo, 0600);
chown(fifo, ctx.info->mgr_uid, ctx.info->mgr_uid);
setfilecon(fifo, "u:object_r:" SEPOL_FILE_TYPE ":s0");
setfilecon(fifo, MAGISK_FILE_CON);
// Send request
vector<Extra> extras;