Skip to content

Commit

Permalink
[trysail] Revert "kernel: Relax dentry_path_raw compare in core_hook (t…
Browse files Browse the repository at this point in the history
…iann#2041)"

save_allow_list create file failed: -13

This reverts commit 76abcd3.

Signed-off-by: fukiame <[email protected]>
  • Loading branch information
fukiame committed Sep 16, 2024
1 parent ba63f8a commit a8d377f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/core_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/sched.h>
#include <linux/security.h>
#include <linux/stddef.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/uaccess.h>
#include <linux/uidgid.h>
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a8d377f

Please sign in to comment.