Skip to content

Commit

Permalink
Merge pull request #10580 from rumch-se/fix_in_package_audit-libs_ins…
Browse files Browse the repository at this point in the history
…talled

Rename SLE 12/15 rule and change package name
  • Loading branch information
marcusburghardt authored May 30, 2023
2 parents 10f9d15 + 0a297b8 commit d7ed76d
Showing 1 changed file with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{{% if product in ["sle12","sle15"] %}}
{{% set package_name = "libaudit" %}}
{{% else %}}
{{% set package_name = "audit-libs" %}}
{{% endif %}}

documentation_complete: true

title: 'Ensure the audit-libs package as a part of audit Subsystem is Installed'
title: 'Ensure the {{{ package_name }}} package as a part of audit Subsystem is Installed'

prodtype: sle12,sle15

description: 'The audit-libs package should be installed.'
description: 'The {{{ package_name }}} package should be installed.'

rationale: 'The auditd service is an access monitoring and accounting daemon, watching system calls to audit any access, in comparison with potential local access control policy such as SELinux policy.'

Expand All @@ -28,16 +34,24 @@ references:



ocil_clause: 'the audit package is not installed'
ocil_clause: 'the {{{ package_name }}} package is not installed'

{{% if product in ["sle12","sle15"] %}}
ocil: '{{{ ocil_package("libaudit") }}}'
{{% else %}}
ocil: '{{{ ocil_package("audit-libs") }}}'
{{% endif %}}

fixtext: |-
Install the audit-libs package (if the audit-libs package is not already installed) with the following command:
Install the {{{ package_name }}} package (if {{{ package_name }}} package is not already installed) with the following command:
{{% if product in ["sle12","sle15"] %}}
{{{ package_install("libaudit") }}}
{{% else %}}
{{{ package_install("audit-libs") }}}
{{% endif %}}

template:
name: package_installed
vars:
pkgname: audit-libs
pkgname@sle15: libaudit

0 comments on commit d7ed76d

Please sign in to comment.