Skip to content

Commit

Permalink
hook_patch: some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rsuntk committed Jul 26, 2024
1 parent c4640e3 commit dda8c76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hook_patch/4.19_hook_patch.diff
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@
*/
void *devpts_get_priv(struct dentry *dentry)
{
+ #ifdef CONFIG_KSU
+#ifdef CONFIG_KSU
+ ksu_handle_devpts(dentry->d_inode);
+ #endif
+#endif
if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC)
return NULL;
return dentry->d_fsdata;
Expand Down
2 changes: 2 additions & 0 deletions hook_patch/4.4_hook_patch.diff
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@
return dentry;
}

!! THIS PATCH IS UNTESTED !!

+#ifdef CONFIG_KSU
+extern int ksu_handle_devpts(struct inode*);
+#endif
Expand Down

0 comments on commit dda8c76

Please sign in to comment.