mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-12 01:01:49 +00:00
Cleanup our tracks
This commit is contained in:
@@ -76,8 +76,11 @@ void restorecon() {
|
||||
close(fd);
|
||||
}
|
||||
|
||||
void restore_rootcon() {
|
||||
setfilecon(MAGISKTMP.data(), ROOT_CON);
|
||||
void restore_tmpcon() {
|
||||
if (MAGISKTMP == "/sbin")
|
||||
setfilecon(MAGISKTMP.data(), ROOT_CON);
|
||||
else
|
||||
chmod(MAGISKTMP.data(), 0700);
|
||||
|
||||
auto dir = xopen_dir(MAGISKTMP.data());
|
||||
int dfd = dirfd(dir.get());
|
||||
|
||||
Reference in New Issue
Block a user