Helium_Studio
ce58519e66
kernel: Reformat code using clang-format ( #347 )
...
* The coding format is too messy, reformat to improve readability
and get closer to Linux kernel coding style.
* While at it, update .clang-format file to linux-mainline state.
2025-08-22 14:02:20 +08:00
M. Faris
ff6a68221f
kernel: add wrapper for creds, refine disable_seccomp, revert some changes ( #131 )
...
1. Wrapper for creds:
* Some older kernel does not have {.val}, so, for nicer compatibility support and clean code,
make some wrapper for credential use.
* After this change, do not use current_uid().val, instead, use ksu_current_uid(). For more
info, check kernel/include/ksu_creds.h.
2. Refine disable_seccomp (need to add k6.11+ support)
https://github.com/tiann/KernelSU/pull/2708
https://github.com/tiann/KernelSU/issues/2706
3. Revert "Handle unmount for isolated process correctly"
Reason: https://github.com/tiann/KernelSU/pull/2696#issuecomment-3181866301
4. consolidate most of the gaps
Co-authored-by: Wang Han <416810799@qq.com >
2025-08-16 13:11:58 +08:00
weishu
efbc07fde3
kernel: use library import
2024-04-27 09:55:24 +08:00
Soo-Hwan Na
d0e3b2672d
kernel: Add input hook to ksu_hooks.h ( #315 )
...
Then we don't have to do extern input_hook(...) ; input_hook(..) and
just include header file and use input_hook(...) only
Like
f39f4823a1
Not
0c491aca8a
2023-03-21 09:45:12 +08:00
Ylarod
2f970f7ab8
kernel: refact ( #113 )
...
* refact
* sort inlude
* update
* unregister execve kprobe
* update log
* don't unregister if not in kprobe
* opt for no kprobe
* opt for no kprobe
* stop debug
* don't forget to call ksu_uid_observer_exit
* rename core to core_hook
* direct call do_persistent_allow_list
* add prefix
* use getter, add warn
* add wrapper
* run clang-format
clang-format --style="{BasedOnStyle: InheritParentConfig, SortIncludes: true}" -i kernel/**/*.[ch]
* try fix wsa x64 build
2023-01-25 21:53:19 +08:00
weishu
deac6163d6
kernel: 1. use prctl lsm hook; 2. refine sucompat hook
2023-01-19 13:31:55 +07:00