4qwerty7 c0066b68f5 kernel: support the case that init_task.mnt_ns != zygote.mnt_ns(WSA) (#698)
Basic support for the case that init_task.mnt_ns != zygote.mnt_ns(WSA),
just copy nsproxy and fs pointers for solve #276.

Note the copy in `apk_sign.c` is not required but suggested for
secure(ensure the checked mnt_ns is what ns android running, not created
by user, although many distributions does not have user ns.).

Tested with latest release on Win10 19045.3086(with WSAPatch).

Further review required for:
- [x] Security of this operation (without locking).
- [x] The impact of these modifications on other Android distributions.
2023-07-02 00:20:01 +08:00
2023-06-26 18:53:27 +08:00
2023-07-01 21:22:50 +08:00
2022-12-09 22:03:55 +08:00
2023-06-13 12:11:12 +08:00
2023-06-13 12:11:12 +08:00
2023-06-13 12:11:12 +08:00
2023-06-16 20:50:13 +08:00
2023-06-13 12:11:12 +08:00
2023-06-13 12:11:12 +08:00

English | 简体中文 | 繁體中文 | 日本語 | Portuguese-Brazil | Türkçe

KernelSU

A Kernel based root solution for Android devices.

Features

  1. Kernel-based su and root access management.
  2. Module system based on overlayfs.

Compatibility State

KernelSU officially supports Android GKI 2.0 devices(with kernel 5.10+), old kernels(4.14+) is also compatible, but you need to build kernel yourself.

WSA and containter-based Android should also work with KernelSU integrated.

And the current supported ABIs are : arm64-v8a and x86_64

Usage

Installation

Build

How to build?

Discussion

License

  • Files under kernel directory are GPL-2
  • All other parts except kernel directory are GPL-3

Credits

Description
No description provided
Readme GPL-3.0 60 MiB
Languages
Kotlin 67.1%
C 20%
Rust 11.1%
Shell 0.9%
Makefile 0.4%
Other 0.4%