Restore context before copy

fix magiskpolicy context
This commit is contained in:
vvb2060
2022-07-23 03:57:43 -07:00
committed by John Wu
parent 8b095de04d
commit c7c9fb9576
3 changed files with 6 additions and 0 deletions
+3
View File
@@ -74,6 +74,9 @@ void restorecon() {
close(fd);
lsetfilecon(MODULEROOT, SYSTEM_CON);
restore_syscon(xopen(MODULEROOT, O_RDONLY | O_CLOEXEC));
}
void restore_databincon() {
restore_magiskcon(xopen(DATABIN, O_RDONLY | O_CLOEXEC));
}