Files
SukiSU-Ultra/kernel
F-19-F 1d1e0f1e7f kernel: provide is_ksu_transition check
context: this is known by many as `selinux hook`, `4.9 hook`

add is_ksu_transition check which allows ksud execution under nosuid.
it also eases up integration on 3.X kernels that does not have check_nnp_nosuid.

this also adds a `ksu_execveat_hook` check since this transition is NOT needed
anymore once ksud ran.

Usage:
	if (check_ksu_transition(old_tsec, new_tsec))
		return 0;

on either check_nnp_nosuid or selinux_bprm_set_creds (after execve sid reset)

reference: dfe003c9fd

taken from:
`allow init exec ksud under nosuid`
- 3df9df42a6
- https://github.com/tiann/KernelSU/pull/166#issue-1565872173

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
2025-06-11 14:44:06 +08:00
..
2024-04-27 09:55:24 +08:00
2023-04-13 10:41:49 +08:00
2023-06-16 19:53:15 +08:00
2024-04-27 09:55:24 +08:00
2024-04-27 09:55:24 +08:00
2023-06-16 19:53:15 +08:00
2025-05-17 18:45:01 +08:00
2023-06-16 19:53:15 +08:00
2025-06-11 14:44:06 +08:00
2023-02-02 09:04:07 +08:00
2024-04-27 09:55:24 +08:00