Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions samsung/SM-A155F/fix_base.c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -95,10 +95,15 @@
#include <linux/sched/stat.h>
#include <linux/posix-timers.h>
#include <linux/time_namespace.h>
#include <linux/resctrl.h>
#include <linux/cpufreq_times.h>
+
+#ifdef CONFIG_KSU_SUSFS_SUS_MAP
+#include <linux/susfs_def.h>
+#endif
+
#include <linux/task_integrity.h>
#include <linux/proca.h>
#include <trace/events/oom.h>
#include "internal.h"
#include "fd.h"
18 changes: 18 additions & 0 deletions samsung/SM-A155F/fix_exec.c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -62,10 +62,15 @@
#include <linux/fs_struct.h>
#include <linux/oom.h>
#include <linux/compat.h>
#include <linux/vmalloc.h>
#include <linux/io_uring.h>
+
+#ifdef CONFIG_KSU_SUSFS
+#include <linux/susfs_def.h>
+#endif
+
#include <linux/task_integrity.h>

#include <linux/uaccess.h>
#include <asm/mmu_context.h>
#include <asm/tlb.h>
44 changes: 44 additions & 0 deletions samsung/SM-A155F/fix_namespace.c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -33,13 +33,27 @@
#include <linux/fslog.h>
#ifdef CONFIG_KDP_NS
#include <linux/kdp.h>
#endif

+#ifdef CONFIG_KSU_SUSFS_SUS_MOUNT
+#include <linux/susfs_def.h>
+#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