Is it possible to configure a Linux server to stop all operations when it cannot create logs, similar to the security policy in Windows called "Audit: Shut down system immediately if unable to log security audits"?

To goal would be to prevent a server from doing anything if it cannot log what it is doing. To prevent an attacker from filling the disk, or otherwise preventing the log from being written, and then carry on malicious operations from that server.

  • By stop all operations, what exactly you mean ? – Atul Jan 31 '19 at 16:03
  • How about checking if you are able to write to a file and "stop" the operations if you are not able to do so ? Creating a log file and checking the data using FILE=<your log file > if [ -w "$FILE" ] then echo "Able to write to the logfile, continuing operations" else echo "Not able to log to the logfile" fi – Atul Jan 31 '19 at 16:06
  • Something similar to docs.microsoft.com/en-us/windows/security/threat-protection/…. You cannot login, no service is responding. All you can do is logon as admin and archive+clear the logs. – Christoffer Reijer Jan 31 '19 at 20:44
  • I am looking for something robust, that would be difficult for the attacker to circumvent/disable. – Christoffer Reijer Jan 31 '19 at 20:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.