Skip to content

try to fix load_policy denial - #45

Merged
YuKongA merged 4 commits into
YuKongA:mainfrom
chisewaguri:fix-permissive-reassert
Aug 19, 2026
Merged

try to fix load_policy denial#45
YuKongA merged 4 commits into
YuKongA:mainfrom
chisewaguri:fix-permissive-reassert

Conversation

@chisewaguri

@chisewaguri chisewaguri commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

related to issue #9 and #11

load_policy before ksud

@chisewaguri chisewaguri changed the title fix selinux policy fixup (issue #11) + show log in app fix selinux policy fixup Aug 17, 2026
@YuKongA
YuKongA force-pushed the fix-permissive-reassert branch from 766b833 to 14d8bbf Compare August 18, 2026 02:03
@YuKongA

YuKongA commented Aug 18, 2026

Copy link
Copy Markdown
Owner

This actually seems to prevent my device from connecting to the Internet.

@chisewaguri
chisewaguri marked this pull request as draft August 18, 2026 02:49
@chisewaguri

chisewaguri commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

thats weird, ill retest this when im home

@chisewaguri
chisewaguri force-pushed the fix-permissive-reassert branch from 14d8bbf to e1b3211 Compare August 18, 2026 06:45
@chisewaguri chisewaguri changed the title fix selinux policy fixup make load_policy actually work by re asserting permissive Aug 18, 2026
@chisewaguri
chisewaguri force-pushed the fix-permissive-reassert branch from e1b3211 to 2c631aa Compare August 18, 2026 06:47
@chisewaguri chisewaguri changed the title make load_policy actually work by re asserting permissive try to fix load_policy denial Aug 18, 2026
@chisewaguri
chisewaguri force-pushed the fix-permissive-reassert branch from 2c631aa to 8900d4b Compare August 18, 2026 10:46
@chisewaguri

chisewaguri commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

seems like ksud late load set the selinux to enforcing, so i believe the fix is simpler lmao just do load policy before we load ksu

@chisewaguri
chisewaguri force-pushed the fix-permissive-reassert branch 3 times, most recently from 032e73a to 43c11e6 Compare August 18, 2026 13:03
@chisewaguri

Copy link
Copy Markdown
Contributor Author

yea i tried 20 consecutive reboot and run and i always have internet

@chisewaguri
chisewaguri marked this pull request as ready for review August 18, 2026 13:04
@chisewaguri
chisewaguri force-pushed the fix-permissive-reassert branch from 43c11e6 to 8c1a8e1 Compare August 18, 2026 13:07
@chisewaguri

Copy link
Copy Markdown
Contributor Author

i think keeping retry is ok

@chisewaguri

Copy link
Copy Markdown
Contributor Author

@YuKongA can u test this

@YuKongA

YuKongA commented Aug 19, 2026

Copy link
Copy Markdown
Owner

ksud late-load will auto be changed to enforcing when exec.
https://github.com/tiann/KernelSU/blob/main/kernel/core/init.c#L166

@YuKongA
YuKongA merged commit 5fbd314 into YuKongA:main Aug 19, 2026
2 checks passed
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.

2 participants