Skip to content

add auditing of systemctl execution to rhel9 and rhel10 ospp profiles - #15330

Merged
ggbecker merged 4 commits into
ComplianceAsCode:masterfrom
vojtapolasek:add_audit_systemctl_ospp
Nov 13, 2026
Merged

ggbecker merged 4 commits into
ComplianceAsCode:masterfrom
vojtapolasek:add_audit_systemctl_ospp

Conversation

@vojtapolasek

Copy link
Copy Markdown
Collaborator

Description:

  • add two rules to audit execution of systemctl command by users
  • one rule covers ppc64le, the other rule covers x86_64 and s390x
  • there is no rule for aarch64, it was not requested
  • I also added those rules only to RHEL 9 and RHEL 10 OSPP profiles

Rationale:

  • improve automation of the OSPP profile

Note: I did not extend the already existing template for auditing of privileed commands. It seemed like an overkill for this task. But it is something to consider in future.

Review Hints:

Check tests and run automatus locally if you think it is needed.

@vojtapolasek vojtapolasek added this to the 0.1.83 milestone Nov 11, 2026
@vojtapolasek
vojtapolasek requested a review from a team as a code owner November 11, 2026 09:54
@vojtapolasek vojtapolasek added the New Rule Issues or pull requests related to new Rules. label Nov 11, 2026
@vojtapolasek vojtapolasek added the RHEL9 Red Hat Enterprise Linux 9 product related. label Nov 11, 2026
@vojtapolasek vojtapolasek added Update Profile Issues or pull requests related to Profiles updates. OSPP OSPP benchmark related. RHEL10 Red Hat Enterprise Linux 10 product related. labels Nov 11, 2026
@openshift-ci openshift-ci Bot added the needs-rebase Used by openshift-ci bot. label Nov 12, 2026
Two specific rules only for ospp profile with exact syntax.
tested that it works on local RHEL 10 aarch64 vm
@vojtapolasek
vojtapolasek force-pushed the add_audit_systemctl_ospp branch from 52e0bc5 to 4c5322d Compare November 12, 2026 13:43
@openshift-ci openshift-ci Bot removed the needs-rebase Used by openshift-ci bot. label Nov 12, 2026
@matusmarhefka matusmarhefka self-assigned this Nov 12, 2026
@ggbecker
ggbecker merged commit 4e73fb2 into ComplianceAsCode:master Nov 13, 2026
78 of 81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Rule Issues or pull requests related to new Rules. OSPP OSPP benchmark related. RHEL9 Red Hat Enterprise Linux 9 product related. RHEL10 Red Hat Enterprise Linux 10 product related. Update Profile Issues or pull requests related to Profiles updates.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants