Skip to content

Commit

Permalink
2.1.2
Browse files Browse the repository at this point in the history
switch from gke.auth to gk.db for GKE modification date
restricted user outdated component updates to Gatekeeper, MRT & XProtect
  • Loading branch information
JayBrown committed Jun 1, 2020
1 parent 77e257b commit 9af0271
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions macsu.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

# macOS Security Updates (macSU)
# shell script: macsu.zsh / LaunchAgent: local.lcars.macOSSecurityUpdates
# v2.1.1
# v2.1.2
# Copyright (c) 2018–20 Joss Brown (pseud.)
# license: MIT+
# info: https://github.com/JayBrown/macOS-Security-Updates
# thanks to Howard Oakley: https://eclecticlight.co / https://github.com/hoakleyelc/updates

export LANG=en_US.UTF-8

macsuv="2.1.1"
macsuv="2.1.2"
macsumv="2"
scrname=$(basename "$0")
process="macOS Security"
Expand Down Expand Up @@ -191,7 +191,7 @@ Compatibility Notification Data@/Library/Apple/Library/Bundles/CompatibilityNoti
Core LSKD (kdrl)@/usr/share/kdrl.bundle/[email protected]@CFBundleShortVersionString@/usr/share/kdrl.bundle@/usr/share/kdrl.bundle/lskd.rl@none
Core Suggestions@/System/Library/PrivateFrameworks/CoreSuggestionsInternals.framework/Versions/A/Resources/Assets.suggestionsassets/[email protected]@CFBundleShortVersionString@/System/Library/PrivateFrameworks/CoreSuggestionsInternals.framework@/System/Library/PrivateFrameworks/CoreSuggestionsInternals.framework/Versions/A/Resources/Assets.suggestionsassets/AssetData@none
Gatekeeper@/private/var/db/gkopaque.bundle/Contents/[email protected]@CFBundleShortVersionString@/private/var/db/gkopaque.bundle@/private/var/db/gkopaque.bundle/Contents/Resources/gkopaque.db@none
Gatekeeper E@/private/var/db/gke.bundle/Contents/[email protected]@CFBundleShortVersionString@/private/var/db/gke.bundle@/private/var/db/gke.bundle/Contents/Resources/gke.auth@none
Gatekeeper E@/private/var/db/gke.bundle/Contents/[email protected]@CFBundleShortVersionString@/private/var/db/gke.bundle@/private/var/db/gke.bundle/Contents/Resources/gk.db@none
Incompatible Apps@/Library/Apple/Library/Bundles/IncompatibleAppsList.bundle/Contents/[email protected]@CFBundleShortVersionString@/Library/Apple/Library/Bundles/IncompatibleAppsList.bundle@/Library/Apple/Library/Bundles/IncompatibleAppsList.bundle/Contents/Resources/IncompatibleAppsList.plist@none
KEXT Exclusions@/Library/Apple/System/Library/Extensions/AppleKextExcludeList.kext/Contents/[email protected]@CFBundleShortVersionString@/Library/Apple/System/Library/Extensions/AppleKextExcludeList.kext@/Library/Apple/System/Library/Extensions/AppleKextExcludeList.kext/Contents/Resources/ExceptionLists.plist@none
Malware Removal Tool@/Library/Apple/System/Library/CoreServices/MRT.app/Contents/[email protected]@CFBundleShortVersionString@/Library/Apple/System/Library/CoreServices/MRT.app@none@none
Expand Down Expand Up @@ -554,15 +554,19 @@ do
fi
if [[ $nxpversion != "n/a" ]] ; then
skipcomp=false
tonotify=true
if [[ $cname == "Gatekeeper" ]] ; then
sec_current=$(echo "$sysup" | awk -F"Gatekeeper = " '{print $2}')
elif [[ $cname == "Gatekeeper E" ]] ; then
tonotify=false
sec_current=$(echo "$sysup" | awk -F"GatekeepDE = " '{print $2}')
elif [[ $cname == "KEXT Exclusions" ]] ; then
tonotify=false
sec_current=$(echo "$sysup" | awk -F"KEXT$sysmv = " '{print $2}')
elif [[ $cname == "Malware Removal Tool" ]] ; then
sec_current=$(echo "$sysup" | awk -F"MRT = " '{print $2}')
elif [[ $cname == "TCC" ]] ; then
tonotify=false
sec_current=$(echo "$sysup" | awk -F"TCC$sysmv = " '{print $2}')
elif [[ $cname == "XProtect" ]] ; then
sec_current=$(echo "$sysup" | awk -F"XProtect$sysmv = " '{print $2}')
Expand All @@ -575,7 +579,7 @@ do
_sysbeep &
echo "$cname: a NEWER version is available: $nxpversion < $sec_current"
logbody="$logbody\n$cname: out-of-date [available: $sec_current]"
_notify "$cname" "Out-of-date: v$sec_current available!"
$tonotify && _notify "$cname" "Out-of-date: v$sec_current available!"
elif [[ $seccomp == "same" ]] ; then
echo "$cname: the current version is installed"
elif [[ $seccomp == "lesser" ]] ; then
Expand Down

0 comments on commit 9af0271

Please sign in to comment.