Enable auditing of processes that start prior to auditd

This document (7021457) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 (All Released Versions)
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP4
SUSE Linux Enterprise Server 12 SP3
SUSE Linux Enterprise Server 12 SP2
 

Situation

Once the audit daemon is running, it ensures auditing is enabled on all processes that get launched after startup of auditd and are capable of auditing. The "auditible" flag, which is present for all processes, indicates whether or not the events of the process is capable of auditing.

However, the processes launched prior to the audit process will not have auditing enabled when they are spawned.

Resolution

Booting with "audit=1" on the kernel command-line will make sure auditing is enabled on all auditible processes.

The change can be implemented the following way :
  • Open the file /etc/default/grub
  • Append "audit=1" to the space-separated list of options specified in the GRUB_CMDLINE_LINUX_DEFAULT variable.
  • Save the file
  • Update the GRUB2 boot loader configuration in /boot/grub2/grub.cfg by executing
    # grub2-mkconfig -o /boot/grub2/grub.cfg
  • Reboot the system
  • Verify that the setting is present in the /proc/cmdline file

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7021457
  • Creation Date: 18-Sep-2017
  • Modified Date:01-Dec-2022
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center