strawberry/packaging/macos/com.strawberry.update.plist
trvon c871362b5e
Package for macOS: launchd jobs, signing and install
packaging/macos/ holds the ES entitlement and two LaunchDaemons: the
scanner (root, group strawberry, umask 027, XDG_DATA_HOME=/var/db so
evidence lands in /var/db/strawberry) and the rule updater (daily, and
on feeds/update-requested like strawberry-update.path).
scripts/macos_install.sh creates the group with dseditgroup, the
config (/run paths moved to /var/run), state directories, signs the
binary with the entitlement and bootstraps both jobs.

make macos-sign (IDENTITY=- ad hoc, or a Developer ID), make
macos-install, and make macos-live-tests (signs and runs
macos_es_live under sudo). An ad hoc signature carries the ES
entitlement only with SIP disabled; the install script says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 20:53:27 -06:00

47 lines
1.4 KiB
Text

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
Daily YARA/IOC feed update (macOS counterpart of strawberry-update.timer).
"Update now" from the app touches the request file, like strawberry-update.path.
-->
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.strawberry.update</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/strawberry</string>
<string>--update-rules</string>
<string>/etc/strawberry/strawberry.conf</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>XDG_DATA_HOME</key>
<string>/var/db</string>
</dict>
<key>UserName</key>
<string>root</string>
<key>GroupName</key>
<string>strawberry</string>
<key>Umask</key>
<integer>23</integer>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>86400</integer>
<key>WatchPaths</key>
<array>
<string>/var/db/strawberry/feeds/update-requested</string>
</array>
<key>LowPriorityIO</key>
<true/>
<key>Nice</key>
<integer>10</integer>
<key>ProcessType</key>
<string>Background</string>
<key>StandardOutPath</key>
<string>/var/log/strawberry-update.log</string>
<key>StandardErrorPath</key>
<string>/var/log/strawberry-update.log</string>
</dict>
</plist>