Skip to content

SLE16 adapt sudoers rules to work both with /etc and distro_default#14691

Open
teacup-on-rockingchair wants to merge 2 commits intoComplianceAsCode:masterfrom
teacup-on-rockingchair:sle16_sudoers_patch
Open

SLE16 adapt sudoers rules to work both with /etc and distro_default#14691
teacup-on-rockingchair wants to merge 2 commits intoComplianceAsCode:masterfrom
teacup-on-rockingchair:sle16_sudoers_patch

Conversation

@teacup-on-rockingchair
Copy link
Copy Markdown
Contributor

Description:

  • Make sure that the sudoers rules for SLE16 handle correctly both situation where there is configurations in /etc/sudoers file /etc/sudoers.d drop-in directory and cases where no configuration is present in /etc but exists only in /usr/etc

Rationale:

  • the sudoers rule have to take consideration that configuration that violates the rules might exist in the distro default configuration, that is in the /usr/etc path

@teacup-on-rockingchair teacup-on-rockingchair added this to the 0.1.81 milestone May 1, 2026
@teacup-on-rockingchair teacup-on-rockingchair added OVAL OVAL update. Related to the systems assessments. SLES SUSE Linux Enterprise Server product related. labels May 1, 2026
@Mab879 Mab879 self-assigned this May 1, 2026
echo 'root ALL= ALL' >> /etc/sudoers
echo '# user ALL= ALL' >> /etc/sudoers
# add fail line in /usr/etc/sudoers, it should not be checked
# when /etc/sudoers
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment seems cut off

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

👍 should be clearer in 6e2736e

Copy link
Copy Markdown
Member

@Mab879 Mab879 left a comment

Choose a reason for hiding this comment

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

I will this open for a SUSE maintainer to take a look as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OVAL OVAL update. Related to the systems assessments. SLES SUSE Linux Enterprise Server product related.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants