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

Make selinux context elevation for sudo more flexible #11224

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

<ind:textfilecontent54_object id="obj_sudo_selinux_elevation_type" version="1">
<ind:filepath operation="pattern match">^/etc/sudoers(\.d/.*)?$</ind:filepath>
<ind:pattern operation="pattern match">^\s*%wheel.*TYPE=(\w+).*$</ind:pattern>
<ind:pattern operation="pattern match">^\s*%\w+.*TYPE=(\w+).*$</ind:pattern>
<ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
</ind:textfilecontent54_object>

<ind:textfilecontent54_object id="obj_sudo_selinux_elevation_role" version="1">
<ind:filepath operation="pattern match">^/etc/sudoers(\.d/.*)?$</ind:filepath>
<ind:pattern operation="pattern match">^\s*%wheel.*ROLE=(\w+).*$</ind:pattern>
<ind:pattern operation="pattern match">^\s*%\w+.*ROLE=(\w+).*$</ind:pattern>
<ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
</ind:textfilecontent54_object>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# platform = multi_platform_ol
#!/bin/bash

# platform = multi_platform_all
# packages = sudo
# remediation = none

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# platform = multi_platform_ol
#!/bin/bash

# platform = multi_platform_all
# packages = sudo

echo '%wheel ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r ALL' >> /etc/sudoers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# platform = multi_platform_ol
#!/bin/bash

# platform = multi_platform_all
# packages = sudo

echo '%wheel ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r ALL' >> /etc/sudoers.d/01-complianceascode.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# platform = multi_platform_all
# packages = sudo

group_add sudoers

echo '%sudoers ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r ALL' >> /etc/sudoers.d/01-complianceascode.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# platform = multi_platform_ol
#!/bin/bash

# platform = multi_platform_all
# packages = sudo
# remediation = none

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# platform = multi_platform_ol
#!/bin/bash

# platform = multi_platform_all
# packages = sudo
# remediation = none

Expand Down
Loading