forked from TeraaBytee/kernel_builder
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: fukiame <fukiame@proton.me>
- Loading branch information
Showing
10 changed files
with
37 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,3 @@ index 0da6e4f19d7f..a05e05302930 100644 | |
ssize_t ret; | ||
|
||
if (!(file->f_mode & FMODE_READ)) | ||
-- | ||
2.45.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,3 @@ index dbbc5fff7177..b0906fdb762e 100644 | |
}; | ||
|
||
static uid_t getuid(void) { | ||
-- | ||
2.45.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -354,6 +354,3 @@ index e7789907481a..c2e0dfaccdbc 100644 | |
|
||
retval = security_inode_getattr(path); | ||
if (retval) | ||
-- | ||
2.45.0 | ||
|
31 changes: 31 additions & 0 deletions
31
ksu/patches/4.14/0010-fs-devpts-inode-add-ksu-handle.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: fukiame <fukiame@proton.me> | ||
Date: Thu, 1 Aug 2024 18:08:20 +0700 | ||
Subject: [PATCH] fs/devpts: inode: add ksu handle | ||
|
||
|
||
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c | ||
index 32f6f1c683d9..1cf42cbc4f00 100644 | ||
--- a/fs/devpts/inode.c | ||
+++ b/fs/devpts/inode.c | ||
@@ -602,6 +602,10 @@ struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv) | ||
return dentry; | ||
} | ||
|
||
+#ifdef CONFIG_KSU | ||
+extern int ksu_handle_devpts(struct inode*); | ||
+#endif /* CONFIG_KSU */ | ||
+ | ||
/** | ||
* devpts_get_priv -- get private data for a slave | ||
* @pts_inode: inode of the slave | ||
@@ -610,6 +614,9 @@ struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv) | ||
*/ | ||
void *devpts_get_priv(struct dentry *dentry) | ||
{ | ||
+#ifdef CONFIG_KSU | ||
+ ksu_handle_devpts(dentry->d_inode); | ||
+#endif /* CONFIG_KSU */ | ||
if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC) | ||
return NULL; | ||
return dentry->d_fsdata; |