mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
os_install_log_retention_configure - TTL will be removed after update #69
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iamflaurian on GitHub.
os_install_log_retention_configure - TTL will be removed after update
Steps to reproduce
or
check it via terminal
usr/sbin/aslmanager -dd 2>&1 | /usr/bin/awk '/\/var\/log\/install.log$/ {count++} /Processing module com.apple.install/,/Finished/ { for (i=1;i<=NR;i++) { if ($i == "TTL" && $(i+2) >= $ODV) { ttl="True" }; if ($i == "MAX") {max="True"}}} END{if (count > 1) { print "Multiple config files for /var/log/install, manually remove the extra files"} else if (max == "True") { print "all_max setting is configured, must be removed" } if (ttl != "True") { print "TTL not configured" } else { print "Yes" }}'Operating System version
tested with macOS 14.7.1 update to 14.7.2 and 15.1.1 to 15.2
Intel or Apple Silicon
Apple Silicon Mac
What is the current bug behavior?
The setting will be removed which means, you have to set it for each update again.
What is the expected correct behavior?
If its configured its should not be removed after updating the macOS system.
@iamflaurian commented on GitHub:
Hey @robertgendler
thank you for your quick response. I think it would be great to see these kind of information as a "note" to get hint about it
@robertgendler commented on GitHub:
Unfortunately there's nothing that can be done by us. This is an Apple thing. The best solution is to do a check and fix on regular rotation so that when files such as this are modified, they are remediated.