auditd stops sending audit messages of NFS share
This document (000021145) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12 all service packs
Situation
-w /sap -p rwxa -k sap-nfs
However when the share is unmounted and mounted again, no more logs are recorded and the following message is seen
audit: type=1305 : op=remove_rule dir="/sap" key="sap-nfs" list=4 res=1
Resolution
[Unit] RequiresMountsFor=/sap BindsTo=sap.mount [Service] Type=oneshot RemainAfterExit=yes ExecStart=/bin/sh -c "/usr/sbin/auditctl -w /sap -p rwxa -k sap-nfs || true" [Install] WantedBy=sap.mount
systemctl enable --now on-sap-nfs-mount
With that, auditctl is executed to reload the rules for the NFS share that is being mounted back.
Cause
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:000021145
- Creation Date: 21-Jul-2023
- Modified Date:28-Sep-2023
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com