-
Notifications
You must be signed in to change notification settings - Fork 690
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
Updates of the rule use_pam_wheel_group_for_su #10714
Merged
teacup-on-rockingchair
merged 5 commits into
ComplianceAsCode:master
from
rumch-se:extend_use_pam_wheel_group_for_su
Jul 5, 2023
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b2871d1
Updates of the rule use_pam_wheel_group_for_su
rumch-se f6ce92c
A small correction in bash part of the rule
rumch-se b3e29ad
Update rule.yml
rumch-se 9a11550
Small correction in bash part
rumch-se a6b6843
Modification of the rule ensure_pam_wheel_group_empty
rumch-se File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
.../accounts/accounts-restrictions/root_logins/use_pam_wheel_group_for_su/ansible/shared.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# platform = multi_platform_sle,multi_platform_ubuntu | ||
# reboot = false | ||
# strategy = restrict | ||
# complexity = low | ||
# disruption = low | ||
|
||
{{{ ansible_instantiate_variables("var_pam_wheel_group_for_su") }}} | ||
|
||
- name: {{{ rule_title }}} - Ensure group {{ var_pam_wheel_group_for_su }} is removed | ||
group: | ||
name: "{{ var_pam_wheel_group_for_su }}" | ||
state: absent | ||
|
||
- name: {{{ rule_title }}} - Ensure group {{ var_pam_wheel_group_for_su }} exist | ||
group: | ||
name: "{{ var_pam_wheel_group_for_su }}" | ||
state: present | ||
|
||
- name: {{{ rule_title }}} - Add the group to the /etc/pam.d/su file | ||
ansible.builtin.lineinfile: | ||
path: "/etc/pam.d/su" | ||
state: present | ||
regexp: '^[\s]*#[\s]*auth[\s]+required[\s]+pam_wheel\.so[\s]+use_uid group=$' | ||
line: "auth required pam_wheel.so use_uid group={{ var_pam_wheel_group_for_su }}" |
9 changes: 8 additions & 1 deletion
9
...stem/accounts/accounts-restrictions/root_logins/use_pam_wheel_group_for_su/bash/shared.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ CCE-92345-8 | |
CCE-92347-4 | ||
CCE-92348-2 | ||
CCE-92350-8 | ||
CCE-92351-6 | ||
CCE-92353-2 | ||
CCE-92354-0 | ||
CCE-92355-7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ CCE-92514-9 | |
CCE-92516-4 | ||
CCE-92517-2 | ||
CCE-92521-4 | ||
CCE-92522-2 | ||
CCE-92524-8 | ||
CCE-92525-5 | ||
CCE-92527-1 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Isn't this handled by ensure_pam_wheel_group_empty already?