Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Auditd restart broken on Redhat Linux #827

Open
Labels
@guitaoliu

Description

Description

audit 3.1.5-1.el9 no longer has initscripts-service as a dependency.

https://centos.pkgs.org/9-stream/centos-baseos-x86_64/audit-3.1.5-1.el9.x86_64.rpm.html
https://centos.pkgs.org/9-stream/centos-baseos-x86_64/audit-3.1.2-2.el9.x86_64.rpm.html
https://centos.pkgs.org/9-stream/centos-baseos-x86_64/initscripts-service-10.11.8-4.el9.noarch.rpm.html

The os_hardening handler Restart auditd via service task is broken as there is no service binary (provided by initscripts-service).

fatal: [default]: FAILED! => {"changed": false, "cmd": "service auditd restart", "msg": "[Errno 2] No such file or directory: b'service'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

OS / Environment

Redhat Linux 9.4

Ansible Version

ansible [core 2.15.12]
 python version = 3.9.19 (main, Sep 11 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/usr/bin/python3)
 jinja version = 3.1.2
 libyaml = True

Collection Version

 - name: devsec.hardening
 version: ">=10.1.0,<10.2.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /