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

Auditd restart broken on Redhat Linux #827

Open
guitaoliu opened this issue Nov 20, 2024 · 0 comments
Open

Auditd restart broken on Redhat Linux #827

guitaoliu opened this issue Nov 20, 2024 · 0 comments
Labels

Comments

@guitaoliu
Copy link

guitaoliu commented Nov 20, 2024

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"
@guitaoliu guitaoliu added the bug label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant