selinux: Cache SID lookups for domain checks (https://github.com/tiann/KernelSU/pull/3128)#1051
Merged
Merged
Conversation
Cache SELinux SIDs for su/zygote/init contexts at init time instead of resolving them on every domain check. Reduces overhead from string-based lookups to simple integer comparisons. --------- Signed-off-by: 0xSecureByte <chirantan.code@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Collaborator
Author
|
Contributor
|
@pershoot Thanks! Actually I was going to open a PR :) |
Collaborator
Author
np :) |
pershoot
pushed a commit
that referenced
this pull request
Jan 6, 2026
…1051) Cache SELinux SIDs for su/zygote/init contexts at init time instead of resolving them on every domain check. Reduces overhead from string-based lookups to simple integer comparisons. --------- Signed-off-by: 0xSecureByte <chirantan.code@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sorayukii
pushed a commit
to Sorayukii/KernelSU-Next
that referenced
this pull request
Jan 25, 2026
…ernelSU-Next#1051) Cache SELinux SIDs for su/zygote/init contexts at init time instead of resolving them on every domain check. Reduces overhead from string-based lookups to simple integer comparisons. --------- Signed-off-by: 0xSecureByte <chirantan.code@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sorayukii <sorayukii69@gmail.com>
Mr-Morat
pushed a commit
to Mr-Morat/KernelSU-Next
that referenced
this pull request
Jan 28, 2026
…ernelSU-Next#1051) Cache SELinux SIDs for su/zygote/init contexts at init time instead of resolving them on every domain check. Reduces overhead from string-based lookups to simple integer comparisons. --------- Signed-off-by: 0xSecureByte <chirantan.code@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sorayukii <sorayukii69@gmail.com>
slipzryzens
pushed a commit
to slipzryzens/KernelSU-Next
that referenced
this pull request
Jan 31, 2026
…ernelSU-Next#1051) Cache SELinux SIDs for su/zygote/init contexts at init time instead of resolving them on every domain check. Reduces overhead from string-based lookups to simple integer comparisons. --------- Signed-off-by: 0xSecureByte <chirantan.code@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sorayukii <sorayukii69@gmail.com>
maxsteeel
pushed a commit
to maxsteeel/KernelSU-Next
that referenced
this pull request
Feb 1, 2026
…ernelSU-Next#1051) Cache SELinux SIDs for su/zygote/init contexts at init time instead of resolving them on every domain check. Reduces overhead from string-based lookups to simple integer comparisons. --------- Signed-off-by: 0xSecureByte <chirantan.code@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
rifsxd
pushed a commit
that referenced
this pull request
Feb 2, 2026
…1051) Cache SELinux SIDs for su/zygote/init contexts at init time instead of resolving them on every domain check. Reduces overhead from string-based lookups to simple integer comparisons. --------- Signed-off-by: 0xSecureByte <chirantan.code@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
hakuna77
pushed a commit
to hakuna77/KernelSU-Next
that referenced
this pull request
Feb 3, 2026
…ernelSU-Next#1051) Cache SELinux SIDs for su/zygote/init contexts at init time instead of resolving them on every domain check. Reduces overhead from string-based lookups to simple integer comparisons. --------- Signed-off-by: 0xSecureByte <chirantan.code@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
slipzryzens
pushed a commit
to slipzryzens/KernelSU-Next
that referenced
this pull request
Feb 5, 2026
…ernelSU-Next#1051) Cache SELinux SIDs for su/zygote/init contexts at init time instead of resolving them on every domain check. Reduces overhead from string-based lookups to simple integer comparisons. --------- Signed-off-by: 0xSecureByte <chirantan.code@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sorayukii <sorayukii69@gmail.com>
ThRE-Team
pushed a commit
to ThRE-Team/KernelSU-Next
that referenced
this pull request
Feb 12, 2026
…ernelSU-Next#1051) Cache SELinux SIDs for su/zygote/init contexts at init time instead of resolving them on every domain check. Reduces overhead from string-based lookups to simple integer comparisons. --------- Signed-off-by: 0xSecureByte <chirantan.code@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
slipzryzens
pushed a commit
to slipzryzens/KernelSU-Next
that referenced
this pull request
Feb 16, 2026
…ernelSU-Next#1051) Cache SELinux SIDs for su/zygote/init contexts at init time instead of resolving them on every domain check. Reduces overhead from string-based lookups to simple integer comparisons. --------- Signed-off-by: 0xSecureByte <chirantan.code@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sorayukii <sorayukii69@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
selinux: Cache SID lookups for domain checks (tiann/KernelSU#3128)
Author: 0xSecureByte chirantan.code@gmail.com
Date: Mon Jan 5 14:17:14 2026 +0530
'Cache SELinux SIDs for su/zygote/init contexts at init time instead of
resolving them on every domain check. Reduces overhead from string-based
lookups to simple integer comparisons'.
Signed-off-by: 0xSecureByte chirantan.code@gmail.com
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com