-
Notifications
You must be signed in to change notification settings - Fork 12
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
Misc YANG fixes #112
Misc YANG fixes #112
Conversation
troglobit
commented
Aug 21, 2023
- Fix lost deviation and timezone enumerations
- Merge internal YANG revisions inside release cycle
- Drop old versions of native YANG models
- Lock down and restrict user shells
- Limit if:type to supported native types only
Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Rebased against |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed: Drop must expr on iftype, instead set base type to infix-iftype.
Otherwise brilliant as always
This patch restricts the possible user shells to a subset of the list in /etc/shells, which is generated by Buildroot. The default is 'false' to prevent accidental shell access for non-admin role users. The default shell for the admin user is now /bin/clish, which can be further locked down before Infix v24.02 LTS. In case of internal error the default fallback shell is now set to the customizable LOGIN_SHELL, which currently is /bin/bash. Signed-off-by: Joachim Wiberg <[email protected]>
This further locks down confd to fall back to /bin/false as login shell in case of internal errors. Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
This patch adds a new infix-interface-type, derived from the IANA base type, allowing us to limit the list of supported native interface types. Basing on IANA interface type ensure compatibility with other models, e.g., standard/ieee/published/802.3/ieee802-ethernet-interface.yang, which attaches itself to all interfaces of type ianaift:ethernetCsmacd. Tested with yanglint and in Infix using ieee802-ethernet-interface.yang, the 'ethernet' container was properly attached to interfaces of type infixift:ethernet. Tab completion in the CLI now lists only the supported types. Signed-off-by: Joachim Wiberg <[email protected]>
The commit adds a missing description and reorders some yang statements to meet canonical ordering according to RFC7950, section 14. It also relocates the /interfaces/interfaces/infix-if:port augment to its own base model that the bridge (and later lag) models reference. Solving the bisarre ordering issues we've seen previously. Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Dropped the first commit, introducing the must expression, then adjusted the last if:type limiting commit, dropping the extension to the same must expression. |