From 728b8b13723fb4dc9aaa02da143bfe3fccca2b84 Mon Sep 17 00:00:00 2001 From: poqdavid Date: Fri, 26 Dec 2025 21:06:51 +0100 Subject: [PATCH 1/4] Added SM-A155F-OneUI7 --- samsung/SM-A155F/fix_base.c.patch | 18 +++++++++++ samsung/SM-A155F/fix_exec.c.patch | 18 +++++++++++ samsung/SM-A155F/fix_namespace.c.patch | 44 ++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 samsung/SM-A155F/fix_base.c.patch create mode 100644 samsung/SM-A155F/fix_exec.c.patch create mode 100644 samsung/SM-A155F/fix_namespace.c.patch diff --git a/samsung/SM-A155F/fix_base.c.patch b/samsung/SM-A155F/fix_base.c.patch new file mode 100644 index 00000000..dd79a4dd --- /dev/null +++ b/samsung/SM-A155F/fix_base.c.patch @@ -0,0 +1,18 @@ +--- a/fs/proc/base.c ++++ b/fs/proc/base.c +@@ -95,10 +95,15 @@ + #include + #include + #include + #include + #include ++ ++#ifdef CONFIG_KSU_SUSFS_SUS_MAP ++#include ++#endif ++ + #include + #include + #include + #include "internal.h" + #include "fd.h" diff --git a/samsung/SM-A155F/fix_exec.c.patch b/samsung/SM-A155F/fix_exec.c.patch new file mode 100644 index 00000000..16eec113 --- /dev/null +++ b/samsung/SM-A155F/fix_exec.c.patch @@ -0,0 +1,18 @@ +--- a/fs/exec.c ++++ b/fs/exec.c +@@ -62,10 +62,15 @@ + #include + #include + #include + #include + #include ++ ++#ifdef CONFIG_KSU_SUSFS ++#include ++#endif ++ + #include + + #include + #include + #include diff --git a/samsung/SM-A155F/fix_namespace.c.patch b/samsung/SM-A155F/fix_namespace.c.patch new file mode 100644 index 00000000..e6823466 --- /dev/null +++ b/samsung/SM-A155F/fix_namespace.c.patch @@ -0,0 +1,44 @@ +--- a/fs/namespace.c ++++ b/fs/namespace.c +@@ -33,13 +33,27 @@ + #include + #ifdef CONFIG_KDP_NS + #include + #endif + ++#ifdef CONFIG_KSU_SUSFS_SUS_MOUNT ++#include ++#endif // #ifdef CONFIG_KSU_SUSFS_SUS_MOUNT ++ + #include "pnode.h" + #include "internal.h" + ++#ifdef CONFIG_KSU_SUSFS_SUS_MOUNT ++extern bool susfs_is_current_ksu_domain(void); ++extern bool susfs_is_boot_completed_triggered __read_mostly; ++ ++static DEFINE_IDA(susfs_ksu_mnt_group_ida); ++static atomic64_t susfs_ksu_mounts = ATOMIC64_INIT(0); ++ ++#define CL_COPY_MNT_NS BIT(25) /* used by copy_mnt_ns() */ ++#endif // #ifdef CONFIG_KSU_SUSFS_SUS_MOUNT ++ + /* Maximum number of mounts in a mount namespace */ + unsigned int sysctl_mount_max __read_mostly = 100000; + + /* @fs.sec -- c4d165e8cb5ea1cc14cdedb9eab23efd642d4d5f -- */ + static unsigned int sys_umount_trace_status; +@@ -3917,10 +3931,13 @@ + namespace_lock(); + /* First pass: copy the tree topology */ + copy_flags = CL_COPY_UNBINDABLE | CL_EXPIRE; + if (user_ns != ns->user_ns) + copy_flags |= CL_SHARED_TO_SLAVE; ++#ifdef CONFIG_KSU_SUSFS_SUS_MOUNT ++ copy_flags |= CL_COPY_MNT_NS; ++#endif + #ifdef CONFIG_KDP_NS + new = copy_tree(old, ((struct kdp_mount *)old)->mnt->mnt_root, copy_flags); + #else + new = copy_tree(old, old->mnt.mnt_root, copy_flags); + #endif From 2dadfdccae3d6d52d87708f40988ef5c195958ea Mon Sep 17 00:00:00 2001 From: poqdavid Date: Wed, 4 Feb 2026 18:14:27 +0100 Subject: [PATCH 2/4] Updated fix_namespace.c.patch for the latest SUSFS --- samsung/SM-A155F/fix_namespace.c.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samsung/SM-A155F/fix_namespace.c.patch b/samsung/SM-A155F/fix_namespace.c.patch index e6823466..0f5dfc07 100644 --- a/samsung/SM-A155F/fix_namespace.c.patch +++ b/samsung/SM-A155F/fix_namespace.c.patch @@ -15,7 +15,7 @@ +#ifdef CONFIG_KSU_SUSFS_SUS_MOUNT +extern bool susfs_is_current_ksu_domain(void); -+extern bool susfs_is_boot_completed_triggered __read_mostly; ++extern bool susfs_is_sdcard_android_data_decrypted __read_mostly; + +static DEFINE_IDA(susfs_ksu_mnt_group_ida); +static atomic64_t susfs_ksu_mounts = ATOMIC64_INIT(0); From 5f5aa52d9cb684bf41b9c364b5fb0d02f6975b89 Mon Sep 17 00:00:00 2001 From: poqdavid Date: Thu, 5 Feb 2026 13:33:50 +0100 Subject: [PATCH 3/4] Updated fix_namespace.c.patch --- samsung/SM-A155F/fix_namespace.c.patch | 1 - 1 file changed, 1 deletion(-) diff --git a/samsung/SM-A155F/fix_namespace.c.patch b/samsung/SM-A155F/fix_namespace.c.patch index 0f5dfc07..094485c6 100644 --- a/samsung/SM-A155F/fix_namespace.c.patch +++ b/samsung/SM-A155F/fix_namespace.c.patch @@ -17,7 +17,6 @@ +extern bool susfs_is_current_ksu_domain(void); +extern bool susfs_is_sdcard_android_data_decrypted __read_mostly; + -+static DEFINE_IDA(susfs_ksu_mnt_group_ida); +static atomic64_t susfs_ksu_mounts = ATOMIC64_INIT(0); + +#define CL_COPY_MNT_NS BIT(25) /* used by copy_mnt_ns() */ From cf8d84642e0aa768c6d77114fffa46d957cc4a85 Mon Sep 17 00:00:00 2001 From: poqdavid Date: Thu, 5 Feb 2026 15:14:23 +0100 Subject: [PATCH 4/4] Updated fix_namespace.c.patch --- samsung/SM-A155F/fix_namespace.c.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samsung/SM-A155F/fix_namespace.c.patch b/samsung/SM-A155F/fix_namespace.c.patch index 094485c6..f980fb5b 100644 --- a/samsung/SM-A155F/fix_namespace.c.patch +++ b/samsung/SM-A155F/fix_namespace.c.patch @@ -1,6 +1,6 @@ --- a/fs/namespace.c +++ b/fs/namespace.c -@@ -33,13 +33,27 @@ +@@ -33,13 +33,26 @@ #include #ifdef CONFIG_KDP_NS #include @@ -27,7 +27,7 @@ /* @fs.sec -- c4d165e8cb5ea1cc14cdedb9eab23efd642d4d5f -- */ static unsigned int sys_umount_trace_status; -@@ -3917,10 +3931,13 @@ +@@ -3903,10 +3916,13 @@ namespace_lock(); /* First pass: copy the tree topology */ copy_flags = CL_COPY_UNBINDABLE | CL_EXPIRE;