Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncm-network: Restrictions on device naming should match kernel #1782

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jrha
Copy link
Member

@jrha jrha commented Dec 6, 2024

That is:

  • Maximum 15 characters (16 including null)
  • No whitespace
  • No forward-slashes
  • No colons (but they are allowed in filenames to label alias IPs)

While we're at it, make the regexp in the module absolute, as we're actually matching filenames there.

Similar validation should also happen in the schema as only throwing errors at runtime is really unfriendly.

See also lib/utils.c#L826 and net/core/dev.c#L1066.

That is:
- Maximum 15 characters (16 including null)
- No whitespace
- No forward-slashes
- No colons (but they _are_ allowed in filenames in order to label alias IPs)

While we're at it, make the regexp in the module absolute, as we're actually matching filenames there.

Similar validation should also happen in the schema as only throwing errors at runtime is _really_ unfriendly.
@jrha jrha added this to the 25.next milestone Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant