Skip to content

Add SUSFS UID filter rename patch step - #355

Closed
lunadevph wants to merge 1 commit into
WildKernels:mainfrom
lunadevph:main
Closed

lunadevph wants to merge 1 commit into
WildKernels:mainfrom
lunadevph:main

Conversation

@lunadevph

Copy link
Copy Markdown

Added a new step to patch SUSFS UID filter rename in the action workflow.

Added a new step to patch SUSFS UID filter rename in the action workflow.
TheWildJames added a commit that referenced this pull request Nov 16, 2026
Outside contributions never got reviewed: pull_request gives a fork no secrets
and GitHub parks the run behind a maintainer approval, and the job also skipped
them explicitly (head.repo == github.repository). PR #355 sat 'awaiting approval
from a maintainer' for a run that would then have done nothing.

pull_request_target runs in the base repo's context, so the secret is present and
no approval click is needed. Safety comes from what the job touches rather than
from the event: it checks out the BASE ref (never the fork head), OpenCode reads
the diff through the API, and the job is capped at contents: read plus
pull-requests/issues write. Nothing from the contributor's branch is executed.
@TheWildJames

Copy link
Copy Markdown
Member

Thanks for taking the time — but I can't merge this one, and the reason is that the rename doesn't map one old name onto its new name: it maps two different features onto each other.

In the SUSFS branches we pin (gki-android16-6.12 at 9b0b13f, same shape on the others), both are present and they are not synonyms:

include/linux/susfs.h:203   void susfs_set_sus_path_uid_filter(void __user **user_info);
include/linux/susfs.h:246   void susfs_set_priority_uid_filter(void __user **user_info);

include/linux/susfs_def.h:18   #define CMD_SUSFS_SET_SUS_PATH_UID_FILTER  0x55554
include/linux/susfs_def.h:38   #define CMD_SUSFS_SET_PRIORITY_UID_FILTER  0x60030

Two commands, two structs (st_susfs_sus_path_uid_filter and st_susfs_priority_uid_filter), two implementations (fs/susfs.c:712 and :2093). So the sed would make a manager request for the sus path filter configure the priority filter instead — a silent behaviour change, not a compatibility fix.

The premise also no longer holds: v2.4.0-era branches do declare susfs_set_sus_path_uid_filter (both stable gki-* branches we pin carry it), and our 10_enable_susfs_for_ksu patch already handles both cases — case CMD_SUSFS_SET_SUS_PATH_UID_FILTER and case CMD_SUSFS_SET_PRIORITY_UID_FILTER.

One more practical note: the step edits drivers/kernelsu/supercall/dispatch.c unconditionally, and that path only exists for some root flavours/trees; where it doesn't, sed -i fails and the step fails the build.

The problem this was aiming at was real earlier — before the SUSFS bump, pershoot's tree called susfs_set_sus_path_uid_filter while six branches didn't declare it, and next failed to build. That was fixed at the source by updating the SUSFS pins (all seven branches now carry it), so no rename is needed.

Closing without merging — if you hit a specific tree/version where the symbol genuinely is missing, open an issue with the leg name and the log and I'll look at a guard rather than a rename.

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