Skip to content

Conversation

@lmb
Copy link
Collaborator

@lmb lmb commented Mar 31, 2025

The kernel only allows a restricted set of characters when naming a map or program. So far we've required the user to call SanitizeName manually to ensure that the Name is valid.

Always sanitize names and unexport SanitizeName. The ELF reader still calls sanitizeName to avoid changing the output too much.

The kernel only allows a restricted set of characters when naming a
map or program. So far we've required the user to call SanitizeName
manually to ensure that the Name is valid.

Always sanitize names and unexport SanitizeName. The ELF reader still
calls sanitizeName to avoid changing the output too much.

Signed-off-by: Lorenz Bauer <[email protected]>
@lmb lmb marked this pull request as ready for review March 31, 2025 14:24
@lmb lmb requested a review from a team as a code owner March 31, 2025 14:24
@ti-mo ti-mo merged commit f6a5ebd into cilium:main Apr 2, 2025
17 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