生于生时 亡于亡刻
27f6db889a
chore(ksud): enable clippy::all, clippy::pedantic && make clippy happy ( #617 )
...
* Revert "chore(ksud): bump ksud's deps (#585 )"
* Because it may cause compilation errors.
This reverts commit c8020b2066 .
* chore(ksud): remove unused Result
Signed-off-by: Tools-app <localhost.hutao@gmail.com >
* chore(ksud): enable clippy::all, clippy::pedantic && make clippy happy
https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or
https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pub_crate
...
and use some #![allow(...)] or #[allow(...)]
Signed-off-by: Tools-app <localhost.hutao@gmail.com >
---------
Signed-off-by: Tools-app <localhost.hutao@gmail.com >
2025-11-22 16:58:19 +08:00
生于生时 亡于亡刻
ed6b2e0a8e
opt: Optimize the kpm && uid_scanner ( #549 )
...
* opt: Optimize the structure of kpm.rs
Signed-off-by: Tools-app <localhost.hutao@gmail.com >
* opt: Optimize the uid_scanner startup logic in userspace && code style
Signed-off-by: Tools-app <localhost.hutao@gmail.com >
* opt: rename kpm's ioctl
Signed-off-by: Tools-app <localhost.hutao@gmail.com >
* opt: rename ksucalls::KsuKpmCmd's arg2..arg5
using
```rust
pub struct KsuKpmCmd {
pub control_code: u64,
pub arg1: u64,
pub arg2: u64,
pub result_code: u64,
}
```
This makes it easier to distinguish parameters.
Signed-off-by: Tools-app <localhost.hutao@gmail.com >
---------
Signed-off-by: Tools-app <localhost.hutao@gmail.com >
2025-11-08 13:43:32 +05:30
生于生时 亡于亡刻
0a804ba170
feat: Optimize some codes (ksud) ( #465 )
...
* chore: make cargo clippy happy
Signed-off-by: Tools-app <localhost.hutao@gmail.com >
* chore: Optimize import
- Format as a standard import
Signed-off-by: Tools-app <localhost.hutao@gmail.com >
---------
Signed-off-by: Tools-app <localhost.hutao@gmail.com >
2025-10-12 15:48:24 +08:00
ShirkNeko
a77faa1fe2
Manager: Added functionality to clean up the user-mode scanning environment after execution
...
fmt ksud
2025-09-19 22:04:14 +08:00
ShirkNeko
cc1c66bb6f
Add UID scanner functionality and related infrastructure
...
- Introduced a new module `uid_scanner` in userspace for managing UID scanning.
- Created a new GitHub Actions workflow for building the `user_scanner`.
- Implemented kernel communication in `throne_comm.c` and `throne_comm.h` to handle user space updates and rescan requests.
- Developed the `uid_scanner` daemon in C to scan user directories and manage UID whitelists.
- Added configuration management for the UID scanner with support for multiple users and auto-scanning.
- Implemented logging and error handling throughout the UID scanning process.
- Created necessary build files for the `user_scanner` JNI integration.
- Added a `.gitignore` file to exclude build artifacts.
2025-09-19 21:01:01 +08:00