Git Product home page Git Product logo

Comments (5)

erpadmin avatar erpadmin commented on May 19, 2024

ran once it changed, second time it didn't

TASK [RHEL7-CIS : NOTSCORED | 4.1.1.1 | PATCH | Ensure audit log storage size is configured] ************************************************
ok: [somehost.localhost]

almost as if it changed for other reasons in between runs though because this playbook was already ran on this host a few weeks ago

from rhel7-cis.

erpadmin avatar erpadmin commented on May 19, 2024

this is a weird one. basically sometimes it changes sometimes it doesnt:

# grep max_log /etc/audit/auditd.conf 
max_log_file = 8
max_log_file = 10
max_log_file = 10
max_log_file = 10
max_log_file = 10
max_log_file = 10

from rhel7-cis.

erpadmin avatar erpadmin commented on May 19, 2024

first regexp ( regexp: "^max_log_file") is matching two lines

- name: "NOTSCORED | 4.1.1.1 | PATCH | Ensure audit log storage size is configured"
  lineinfile:
      dest: /etc/audit/auditd.conf
      regexp: "^max_log_file"
      line: "max_log_file = 10"
      state: present
  tags:
      - level2
      - auditd
      - patch
      - rule_4.1.1.1

- name: "SCORED | 4.1.1.3 | PATCH | Ensure audit logs are not automatically deleted"
  lineinfile:
      dest: /etc/audit/auditd.conf
      regexp: "^max_log_file_action"
      line: "max_log_file_action = keep_logs"
      state: present
  tags:
      - level2
      - auditd
      - patch
      - rule_4.1.1.3

from rhel7-cis.

erpadmin avatar erpadmin commented on May 19, 2024

fixed merged, imo issue can be closed

from rhel7-cis.

shepdelacreme avatar shepdelacreme commented on May 19, 2024

Fixed in #44

from rhel7-cis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.