mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-14 07:02:03 +00:00
Guard log FIFO with SELinux
This commit is contained in:
@@ -38,6 +38,9 @@ constexpr const char *applet_names[] = { "su", "resetprop", nullptr };
|
||||
// Unconstrained file type that anyone can access
|
||||
#define SEPOL_FILE_TYPE "magisk_file"
|
||||
#define MAGISK_FILE_CON "u:object_r:" SEPOL_FILE_TYPE ":s0"
|
||||
// Log pipe that only root and zygote can open
|
||||
#define SEPOL_LOG_TYPE "magisk_log_file"
|
||||
#define MAGISK_LOG_CON "u:object_r:" SEPOL_LOG_TYPE ":s0"
|
||||
|
||||
extern int SDK_INT;
|
||||
#define APP_DATA_DIR (SDK_INT >= 24 ? "/data/user_de" : "/data/user")
|
||||
|
||||
Reference in New Issue
Block a user