You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kernel: ksud: dont create structs just to deconstruct them for a string
__ksu_handle_execve_ksud was building a fake struct filename just
to pass it to ksu_handle_execveat_ksud, which immediately does...
filename->name. ??
All we ever needed was filename->name, but we kept doing this meme where
we manually built a struct filename, passed it around, then immediately
ripped out the string again. ??
refactor this so that __ksu_handle_execveat_ksud, takes plain char *.
The old ksu_handle_execveat_ksud is now a shim that unpacks the struct and
hands off the string like we should’ve been doing from the start.
Also mark ksu_handle_execveat_ksud as maybe unused as this will actually be
unused on syscall-only builds.
This also makes integration easier on kernels that don’t have struct filename.
Rejected: tiann#2595
Signed-off-by: backslashxx <[email protected]>
0 commit comments