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

lints: More cleanup && lints: Check for invalid /etc/hostname and /etc/resolv.conf #1095

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

cgwalters
Copy link
Collaborator

@cgwalters cgwalters commented Feb 7, 2025

lints: Use enum instead of bool

This is always clearer. Prep for adding another argument to this function
that's an effective bool.

Signed-off-by: Colin Walters walters@verbum.org


lints: Rework to use linkme

Two goals:

  • The global static LINTS array is a conflict point
  • It's easier to lay out the lint info when it's next to each
    function; prep for extending the lint data more.

Signed-off-by: Colin Walters walters@verbum.org


lints: Check for invalid /etc/hostname and /etc/resolv.conf

Detect problems from containers/buildah#4242
or similar.

As part of this, add new infrastructure logic for lints that only operate on
non-running roots (we expect these are mounted/written at runtime).

Signed-off-by: Colin Walters walters@verbum.org


This is always clearer. Prep for adding another argument to this function
that's an effective bool.

Signed-off-by: Colin Walters <walters@verbum.org>
Two goals:

- The global static LINTS array is a conflict point
- It's easier to lay out the lint info when it's next to each
  function; prep for extending the lint data more.

Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters changed the title lints: Two more cleanup/prep patches lints: More cleanup && lints: Check for invalid /etc/hostname and /etc/resolv.conf Feb 7, 2025
Detect problems from containers/buildah#4242
or similar.

As part of this, add new infrastructure logic for lints that only operate on
non-running roots (we expect these are mounted/written at runtime).

Signed-off-by: Colin Walters <walters@verbum.org>
Copy link
Contributor

@jeckersb jeckersb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 definitely nice having the lints inlined with the functions

@cgwalters cgwalters enabled auto-merge February 7, 2025 17:45
@cgwalters cgwalters merged commit e7736bf into containers:main Feb 7, 2025
20 of 23 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