Repository navigation
SLE16 sudo rules transactional related patches - #15131
teacup-on-rockingchair wants to merge 3 commits into
Conversation
|
Skipping CI for Draft Pull Request. |
7b73cc5 to
b801d5f
Compare
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Critical OVAL coverage gaps and moderate test-platform issues remain unresolved.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 4
Open (6)
SLE16 checks omit /usr/etc/sudoers.d for !authenticate entries · New SLE16 checks omit /usr/etc/sudoers.d for NOPASSWD entries · New Transactional checks miss active vendor sudoers drop-ins · New SLE16 content checks omit vendor sudoers drop-ins · New OpenSUSE product condition uses an invalid product key · New Test scenarios omit SLE16 from the platform marker · New
What changed in this PR
Adapts sudo rules for transactional SLE16/SLMicro platforms using distro-default configuration across OVAL, Bash, Ansible, and tests.
Changes:
- Adds transactional remediation and validation handling.
- Expands sudo tests, package metadata, drop-in coverage, and openSUSE scenarios.
| File | Final review status |
|---|---|
linux_os/guide/system/software/sudo/sudoers_validate_passwd/tests/sudoers_validate_targetpw.fail.sh |
Moderate (1 vote): SLE16 is missing from the platform marker. |
linux_os/guide/system/software/sudo/sudoers_validate_passwd/tests/sudoers_validate_runaspw.fail.sh |
Moderate (1 vote): SLE16 is missing from the platform marker. |
linux_os/guide/system/software/sudo/sudoers_validate_passwd/tests/sudoers_validate_passwd.pass.sh |
Moderate (2 votes): SLE16 is missing from the platform marker. |
linux_os/guide/system/software/sudo/sudoers_validate_passwd/tests/sudoers_validate_passwd.fail.sh |
Moderate (3 votes): opensuse-16 is not a product value. Moderate (1 vote): SLE16 is missing from the platform marker. |
linux_os/guide/system/software/sudo/sudoers_validate_passwd/tests/sudoers_validate_passwd_multiple_files.pass.sh |
Moderate (1 vote): SLE16 is missing from the platform marker. |
linux_os/guide/system/software/sudo/sudoers_validate_passwd/tests/sudoers_validate_passwd_duplicates.pass.sh |
Moderate (1 vote): SLE16 is missing from the platform marker. |
linux_os/guide/system/software/sudo/sudoers_validate_passwd/tests/sudoers_validate_passwd_duplicates.fail.sh |
Moderate (1 vote): SLE16 is missing from the platform marker. |
linux_os/guide/system/software/sudo/sudoers_validate_passwd/tests/sudoers_validate_passwd_conflicting_values.fail.sh |
Moderate (1 vote): SLE16 is missing from the platform marker. |
linux_os/guide/system/software/sudo/sudoers_validate_passwd/tests/sudoers_d_duplicate.pass.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudoers_validate_passwd/oval/shared.xml |
Critical (1 vote): Active /usr/etc/sudoers.d drop-ins can be missed. |
linux_os/guide/system/software/sudo/sudoers_validate_passwd/bash/shared.sh |
Moderate (1 vote): The openSUSE transactional guard is missing. |
linux_os/guide/system/software/sudo/sudoers_validate_passwd/ansible/shared.yml |
No final comment. |
linux_os/guide/system/software/sudo/sudo_restrict_privilege_elevation_to_authorized/oval/shared.xml |
Critical (2 votes): /usr/etc/sudoers.d is not scanned. |
linux_os/guide/system/software/sudo/sudo_require_authentication/tests/wrong_value.fail.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudo_require_authentication/tests/correct_value.pass.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudo_remove_nopasswd/tests/wrong_value.fail.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudo_remove_nopasswd/tests/wrong_value_specific_commands.fail.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudo_remove_nopasswd/tests/wrong_value_include_dir.fail.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudo_remove_nopasswd/tests/correct_value.pass.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudo_remove_nopasswd/oval/shared.xml |
Critical (1 vote): Active /usr/etc/sudoers.d drop-ins can be missed. |
linux_os/guide/system/software/sudo/sudo_remove_nopasswd/bash/shared.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudo_remove_nopasswd/ansible/shared.yml |
No final comment. |
linux_os/guide/system/software/sudo/sudo_remove_no_authenticate/tests/wrong_value.fail.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudo_remove_no_authenticate/tests/wrong_value_include_dir.fail.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudo_remove_no_authenticate/tests/correct_value.pass.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudo_remove_no_authenticate/oval/shared.xml |
Critical (1 vote): Active /usr/etc/sudoers.d drop-ins can be missed. |
linux_os/guide/system/software/sudo/sudo_remove_no_authenticate/bash/shared.sh |
No final comment. |
linux_os/guide/system/software/sudo/sudo_remove_no_authenticate/ansible/shared.yml |
No final comment. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…ro platforms Make sure distro default config is used as basis for configuration and oval, bash and ansible take this into account
0216597 to
f843406
Compare
|
Hi @teacup-on-rockingchair, thanks for the submission. Please submit the test scenarios (e.g. automatus), the test results, and verbose documentation for the remediations before marking this as ready. It will help with the review a lot. (Use the PR template) Thanks! 🙏 |
| @@ -1,4 +1,5 @@ | |||
| #!/bin/bash | |||
| # packages = sudo | |||
There was a problem hiding this comment.
What was the reason for this change?
There was a problem hiding this comment.
The motivation is that the /etc/sudoers file is owned and therefore depends on sudo package
| @@ -1,8 +1,3 @@ | |||
| #!/bin/bash | |||
|
|
|||
| # packages = sudo | |||
There was a problem hiding this comment.
What was the reason for this change?
There was a problem hiding this comment.
The motivation is that the /etc/sudoers file is owned and therefore depends on sudo package
|
@svet-se Please take a look at the suse side of the PR, thank you |


Description:
Rationale:
take this into account