Skip to content

Add NO_ROOT and MANAGER build mode options - #305

Open
Yervant7 wants to merge 1 commit into
bmax121:mainfrom
Yervant7:new-build-option
Open

Add NO_ROOT and MANAGER build mode options#305
Yervant7 wants to merge 1 commit into
bmax121:mainfrom
Yervant7:new-build-option

Conversation

@Yervant7

@Yervant7 Yervant7 commented Sep 5, 2026

Copy link
Copy Markdown

Introduce a NO_ROOT build mode and OFFICIAL_MANAGER toggle: update CI to produce no-root artifacts and docs to document build flags. Extend kernel/Makefile to add ENABLE_ROOT/ENABLE_OFFICIAL_MANAGER, add CONFIG_KP_NO_ROOT and CONFIG_KP_NO_OFFICIAL_MANAGER compile-time guards, and exclude root/manager sources when disabled. Add stubs and conditional logic across patch sources (android/userd.c, supercall.c, supercmd.c, sucompat.h, accctl.h) to safely build/run without built-in root or official manager. Also add input validation fixes in kstorage.c, include/symbol adjustments, and a one-shot kernel init guard (xchg) to prevent double/multiple initialization.

Introduce a NO_ROOT build mode and OFFICIAL_MANAGER toggle: update CI to produce no-root artifacts and docs to document build flags. Extend kernel/Makefile to add ENABLE_ROOT/ENABLE_OFFICIAL_MANAGER, add CONFIG_KP_NO_ROOT and CONFIG_KP_NO_OFFICIAL_MANAGER compile-time guards, and exclude root/manager sources when disabled. Add stubs and conditional logic across patch sources (android/userd.c, supercall.c, supercmd.c, sucompat.h, accctl.h) to safely build/run without built-in root or official manager. Also add input validation fixes in kstorage.c, include/symbol adjustments, and a one-shot kernel init guard (xchg) to prevent double initialization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant