36 Commits

Author SHA1 Message Date
rifsxd 0bb48d09aa src: add x86_64 support 2025-05-24 18:57:18 +06:00
rifsxd 29725214f7 ksud_overlayfs: change find_temp_path to use keep() method for temporary directory since into_path() is deprecated 2025-05-23 04:52:48 +06:00
rifsxd fec0032883 ksud: fix clippy warning/error 2025-05-23 03:18:36 +06:00
backslashxx 9e150b2c44 ksud/installer: /odm handling
we move the folder out of system if it exists in real filesystem and it
is not a symlink.
this is already supported on init_event.rs so only handle_partition
logic was needed to make it happen

since KernelSU is using overlayfs, we need to move these out.

Signed-off-by: backslashxx
<118538522+backslashxx@users.noreply.github.com>

---------

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
2025-05-18 03:42:32 +06:00
Rifat Azad a081fc87c9 manager/userspace: added 32bit (armv7a) support 2025-05-18 03:19:50 +06:00
Caner Karaca 1d23b4bb67 ksud: fix rustfmt errors (#359) 2025-05-06 22:48:58 +06:00
Rifat Azad 48e533f660 ksud_overlayfs: removed custom_sparse_size text file extension 2025-05-04 19:39:06 +06:00
rifsxd 72e54653a2 ksud: disabled BootRestore command 2025-05-01 16:54:09 +06:00
rifsxd 5696d72a3f ksud: fix rustfmt errors 2025-05-01 16:47:20 +06:00
rifsxd 757d20166a manager: clean lkm remnants
ksud: clean clippy warnings
2025-05-01 16:30:09 +06:00
rifsxd 1336996129 manager: disabled KMI/LKM installation
manager: check if overlayfs is available to allow mount system switching
ksud: disabled KMI/LKM commands
ci: disabled LKM build workflow
ksud: removed ksuinit
2025-05-01 15:58:18 +06:00
Rifat Azad 2512239ea7 ksud_overlayfs: fixed rust formatting error 2025-04-03 15:13:21 +06:00
rifsxd 02dbb7d0f7 ksud: added module mount command to check current mount system enabled 2025-04-02 15:12:44 +06:00
Wang Han dc992818de Fix su --shell argument handling (#2529)
This fixes https://github.com/tiann/KernelSU/issues/2523.
2025-04-02 14:09:34 +06:00
Caner Karaca feb3c47bdc Fix formatting (#266) 2025-03-30 01:46:06 +06:00
rifsxd de189fe426 ksud_overlayfs: ability to specify custom sparse image size 2025-03-23 23:15:47 +06:00
rifsxd 30835787c9 Revert "ksud: determine modules's size by checking partion size"
This reverts commit c40bfd694c.
2025-03-23 22:38:01 +06:00
Tiann ee71a992a3 ksud: migrate to Rust 2024 edition 2025-02-25 15:34:27 +06:00
Tiann 195e1ba494 ksud: upgrade nom to 8.0 2025-02-25 14:11:26 +06:00
Wang Han 43d30c8f2b Drop module image if no module remaining (#2447)
This fixes the issue that module image will always exist even if there
is no module to be loaded. Sadly we need to boot twice because we can
only know module status after image is mounted.
2025-02-22 04:50:51 +06:00
weishu c40bfd694c ksud: determine modules's size by checking partion size 2025-02-21 17:02:03 +06:00
rifsxd aa22fd880d ksud_overlayfs: better hide modules.img (create a sparse image without journaling) and run e2fsck for eliminating possible data corruption after umount 2025-02-21 16:57:24 +06:00
rifsxd fdd307fe8b ksud_overlayfs: bring back journaling for sparse image (futile for hiding so reverting until a possible better way is discovered) 2025-02-16 20:36:03 +06:00
rifsxd b2a8fb66d3 ksud_overlayfs: reduce sparse image size to 6GB 2025-02-16 03:10:30 +06:00
rifsxd f247a6d5d8 ksud_overlayfs: better hide modules.img (create a sparse image without journaling) and run e2fsck for eliminating possible data corruption after umount 2025-02-15 19:51:30 +06:00
Caner Karaca b18f89b434 Updates (#151)
* Update

* Fix
2025-02-13 05:54:36 +06:00
rifsxd fcc4f0d206 ksud_overlayfs: fix sparse image journal size being 0 block and cause error to format into ext4 with mke2fs 2025-02-07 14:23:56 +06:00
rifsxd c20fe6c886 ksud_overlayfs: changed sparse image journal size to 64MB for good balance of performance and efficiency 2025-02-06 19:22:48 +06:00
weishu 8832532f09 ksud: make clippy happy 2025-02-06 17:46:14 +06:00
Caner Karaca 4ac264135d ksud: updates (#84) 2025-01-25 20:57:03 +06:00
5ec1cff 7ac03d638c ksud: fix copy sparse file (#2374) 2025-01-24 22:59:16 +06:00
Wang Han b6d670f9a7 Don't unshare after entering global namespace (#2373)
Global namespace is usually used to publicly apply mounts so calling
unshare after entering root namespace is not desired bahavior. This also
keeps -M option same as Magisk.
2025-01-24 15:53:46 +06:00
Rifat Azad 090f4c0f02 ksud: fixed "warning: elided lifetime has a name" and "warning: constant SUSFSD_PATH is never used" 2025-01-20 13:31:18 +06:00
Rifat Azad 82f38fe817 userspace: ksud: fix global namespace su (#55) 2025-01-18 14:25:14 +06:00
Rifat Azad 84f230d35b manager: add susfs status and sus_su toggle
userspace: add susfsd
ci: build susfsd
ksud_overlayfs: update aarch64 bin  BusyBox v1.36.1.1 topjohnwu (2024-10-06 01:38:43 PDT)
2025-01-15 14:26:42 +06:00
Rifat Azad f3f4ba5897 manager: added mount system switchability
userspace: added ksud_overlayfs & ksud_magic
2025-01-07 17:08:53 +06:00