Skip to content

Commit

Permalink
fix major flaw (or mistype idk how) in py script
Browse files Browse the repository at this point in the history
  • Loading branch information
= mlm-games committed Sep 11, 2024
1 parent bd7da95 commit 8009594
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions scripts/integrate-no-kprobe.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,23 +149,26 @@ def process_kernel_source(file_paths, enable_ksu=True, disable_external_mods=Fal
'open.c': {
'functions': ['do_faccessat', 'SYSCALL_DEFINE3(faccessat,'],
'code': ''' #ifdef CONFIG_KSU
if (unlikely(ksu_faccessat_hook))
ksu_handle_faccessat(&dfd, &filename, &mode, &flags);
ksu_handle_faccessat(&dfd, &filename, &mode, NULL);
#endif'''
},
'read_write.c': {
'functions': ['vfs_read'],
'code': ''' #ifdef CONFIG_KSU
if (unlikely(ksu_vfs_read_hook))
ksu_handle_vfs_read(file, buf, count, pos);
ksu_handle_vfs_read(&file, &buf, &count, &pos);
#endif'''
},
'stat.c': {
'functions': ['vfs_statx', 'vfs_fstatat'],
'code': ''' #ifdef CONFIG_KSU
if (unlikely(ksu_vfs_stat_hook))
ksu_handle_vfs_stat(dfd, filename, &stat, flags);
#endif'''
if (unlikely(ksu_vfs_stat_hook)) {
if (strcmp(__func__, "vfs_statx") == 0)
ksu_handle_stat(&dfd, &filename, &flags);
else if (strcmp(__func__, "vfs_fstatat") == 0)
ksu_handle_stat(&dfd, &filename, &flag);
}
#endif'''
},
# External modifications
'inode.c': {
Expand Down
2 changes: 1 addition & 1 deletion scripts/kernel_zipper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fi

# Create AnyKernel zip
cd "$ANYKERNEL_DIR"
zip -r9 "$FINAL_KERNEL_ZIP" * -x .git README.md *placeholder
zip -r9 "$FINAL_KERNEL_ZIP" * -x .git README.md kernel_zipper.sh *placeholder

mv $FINAL_KERNEL_ZIP $KERNEL_DIR/$FINAL_KERNEL_ZIP

Expand Down

0 comments on commit 8009594

Please sign in to comment.