Commit Graph

199 Commits

Author SHA1 Message Date
weishu
1a33103ab9 Revert "Fix the directory pathname while moving directories (#816)"
This reverts commit ea24e42753.
2023-09-09 23:38:27 +08:00
weishu
03761a9fe7 ksud: don't clean update dir, only ensure it exists 2023-09-02 10:39:40 +08:00
weishu
d2302d8189 ksud: Fix module not showing when there is a module don't declare id in module.prop. fix #890 2023-08-20 23:35:09 +08:00
weishu
5892a00fea Revert "ksud: Shrink image after module is updated. fix #855"
This reverts commit 4c953484c1.
2023-08-18 12:33:38 +08:00
weishu
4c953484c1 ksud: Shrink image after module is updated. fix #855 2023-08-17 23:57:51 +08:00
weishu
5f1a274383 ksud: No need to force e2fsck, fix #858,#879 2023-08-17 23:18:42 +08:00
weishu
def3eae924 ksud: exposed the command stdout/stderr to log 2023-08-17 22:05:49 +08:00
Ylarod
e9b90c0d05 ksud: add post_mount stage (#864) 2023-08-16 11:39:32 +08:00
weishu
836acc61c3 ksud: restore selinux context for unlabeled module files on boot. fix #817 2023-08-03 12:00:28 +08:00
weishu
99e3eb8adc ksud: don't follow link when restore file context 2023-08-03 12:00:28 +08:00
AzukiAtsui
ea24e42753 Fix the directory pathname while moving directories (#816)
Fix the duplicate directory name error that occurs when the destination
directory already exists while moving folders.
2023-08-01 13:40:56 +08:00
weishu
6eac1ad1fe ksud: support common & module boot-completed.sh 2023-07-31 19:50:53 +08:00
weishu
93b77b766e ksud: re-enable lto 2023-07-28 22:23:03 +08:00
weishu
bedc54c03f ksud: fix su args parse error. close #736 2023-07-28 22:21:12 +08:00
weishu
cd23980358 ksud: fix common post-fs-data.d may not execute if no modules are enabled 2023-07-24 13:39:51 +08:00
weishu
a92afcc95d ksud: fix path env, close #775 2023-07-18 10:02:06 +08:00
weishu
e983bb86fd ksud: fix prune module 2023-07-11 22:00:50 +08:00
weishu
dfdd5ee7d0 ksud: refactor module iteration 2023-07-11 21:45:45 +08:00
weishu
4530117511 ksud: remove update flag file before mount. if module installation is failed, the module.img will be reverted and the update flag file may exist 2023-07-11 21:28:56 +08:00
weishu
33f357cb23 ksud: uninstall module at next boot. close #740 2023-07-11 21:25:51 +08:00
weishu
9533299d98 manager: save stderr of installation to log file. fix #723 2023-07-11 20:10:12 +08:00
weishu
9c7286c269 ksud: Specify the block size of the ext4 image as 1K, because our subsequent size calculations are based on this; some phones such as the Samsung S23, if no default value is specified, will cause unexpected errors. close #721 2023-07-11 18:30:33 +08:00
Zackptg5
ffcc44ac69 Add boot script directory vars (#747)
Add back variable names for post-fs-data.d and service.d directories

Co-authored-by: weishu <twsxtd@gmail.com>
2023-07-11 12:39:56 +08:00
weishu
f99e1406dd ci: fix rustfmt failed (#748) 2023-07-11 12:23:56 +08:00
shìwēi nguyen
3b21ebea08 ksud: symlink by relative path when handle partitions (#737)
This allows the Magisk design-compliant module boot script to access
`$MODDIR/system/$part` while the mounted overlay still points to
`/$part`
Fix https://github.com/tiann/KernelSU/issues/726
2023-07-09 17:01:00 +08:00
weishu
f946c4bae8 ksud: don't create dir when read 2023-07-01 19:01:09 +08:00
weishu
7cd5bb7dfd ksud: fix fmt 2023-07-01 18:59:41 +08:00
weishu
fcf918bfbc ksud: fix compile err 2023-07-01 18:55:01 +08:00
weishu
5e33ac1b15 ksud: apply selinux rule when profile is set 2023-07-01 18:46:21 +08:00
weishu
25442572aa ksud: don't apply rule when check grammer 2023-07-01 17:43:40 +08:00
weishu
bec4c7f6de ksud: load profile sepolicy rules when boot 2023-07-01 16:50:10 +08:00
weishu
0974d88528 ksud: support root profile's sepolicy 2023-07-01 16:34:43 +08:00
weishu
ebef9da37b ksud: remove unused command 2023-07-01 15:31:53 +08:00
syntaxticsugr
6cf3601978 Fixed Banner Art (#687)
Minor change (added spaces) to fix KSU Banner Art.
2023-06-26 18:22:56 +08:00
weishu
7ab0583a0d ksud: respect the skip_mount flag of module 2023-06-22 17:00:02 +08:00
weishu
9787aa9734 ksud: increase reserved size to 256M 2023-06-22 16:48:13 +08:00
weishu
d621ea6e1d ksud: Fix su parameter parsing. close #530, close #305, close #330, close #305 2023-06-10 15:23:45 +08:00
weishu
2555ce3052 ksud: fix gid is override by uid 2023-06-04 23:14:44 +08:00
weishu
37bd497139 ksud: respect the kernel default uid 2023-06-04 18:09:58 +08:00
tiann
dc8e63421d Revert "Add option to enable global namespace (#497)"
This reverts commit 00a459a91b.
2023-05-16 22:27:01 +08:00
Hikari-no-Tenshi
00a459a91b Add option to enable global namespace (#497)
Disabled by default.
To enable/disable use terminal with root.

To enable:
echo 1 > /sys/module/ksu/parameters/global_namespace_enable

To disable:
echo 0 > /sys/module/ksu/parameters/global_namespace_enable

Value will be reset to 0 (disabled) on reboot.
2023-05-16 11:39:48 +08:00
5ec1cff
6c58b446ed ksud: use MS_RDONLY when mounting overlayfs (#490)
fix https://github.com/tiann/KernelSU/issues/489
2023-05-13 16:17:22 +08:00
tiann
a50055756f ksud: REPLACE must be directory, if you need to replace normal file, just put it to module's system corresponding location, don't need extra steps. fix #466 2023-05-10 14:36:02 +08:00
tiann
ec2b22d9a3 Revert "ksud: update faked Magisk version to 26.1 to make some modules happy"
This reverts commit df182d105d.
2023-04-18 13:24:35 +08:00
tiann
df182d105d ksud: update faked Magisk version to 26.1 to make some modules happy 2023-04-17 23:20:10 +08:00
tiann
db186e7c42 ksud: remove unused dependency 2023-04-17 18:19:18 +08:00
5ec1cff
80dd192bbc ksud: fix bind mount failed again (#395)
This fixes https://github.com/Dr-TSNG/ZygiskOnKernelSU/issues/18
2023-04-17 12:05:13 +08:00
tiann
bff61c671a ksud: avoid using master commit dependency 2023-04-17 11:37:54 +08:00
tiann
ff585d4dc1 ksud: fix clippy 2023-04-16 22:14:53 +08:00
tiann
415c799040 ksud: catch bootlog when post-fs-data 2023-04-15 17:45:20 +08:00