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

Log runlevel changes to console (during boot) #413

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Oct 29, 2024

  1. Add capability to log runlevel changes to console

    Audit may initiate runlevel changes in several scenarios,
    such as when available disk space for audit logs becomes
    critically low. In these situations, audit can halt the
    system during boot, but without clear evidence indicating
    that audit was responsible for the shutdown. With the patch
    applied, audit will write to /dev/console when doing runlevel
    changes.
    Cropi committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    36329a5 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. Add printf function attribute to write_to_console prototype

    If runlevel is not HALT, we will wait until initd returns an
    exit code. After that we can display to console if it succeeded.
    Cropi committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    e8b0239 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. Do not call check_space_left() at startup.

    During boot and auditd initialization, auditd is not
    fully initialized and operational. This means that when
    calling init_event(), we can't notify the parent process
    that initialization is complete. However, if space_left_action
    is set to SINGLE, we must avoid switching to that runlevel (during boot).
    Before entering the SINGLE runlevel, it requires auditd to finish
    initialization. But auditd will not start properly or signal
    the init system that it has started, as it is blocked by
    the attempt to switch to single-user mode, resulting in a
    deadlock.
    Cropi committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    084aec5 View commit details
    Browse the repository at this point in the history