diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 009216efa454..429ba3306ea3 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -198,7 +197,7 @@ int ksu_handle_rename(struct dentry *old_dentry, struct dentry *new_dentry) return 0; } - if (!strstr(buf, "/system/packages.list")) { + if (strcmp(buf, "/system/packages.list")) { return 0; } pr_info("renameat: %s -> %s, new path: %s\n", old_dentry->d_iname,