scripts/install.sh hands off to scripts/macos_install.sh on Darwin (it failed on getent/groupadd) and runs from the repo root. `make install` runs it on either OS. Signing: an ad hoc signature carrying the ES entitlement is killed at launch while SIP is on, and the hardened runtime rejected the Homebrew dylibs (different Team ID). Both entitlement files now disable library validation; with SIP on and IDENTITY=- the installer signs with strawberry-base.entitlements (libproc fallback), test-launches the binary and re-signs without ES if it is killed. `make macos-sign` refuses the combination that would be killed. The installer no longer sets enable_bpf_monitoring=false, which turned off all process monitoring; it sets db_path explicitly. The rule updater runs as the new _strawberry user, which owns only feeds/, and starts on update-requested via KeepAlive PathState (WatchPaths also fired on removal). launchd jobs use `daemon run` / `rules fetch`. Parity with Linux: completions, the installed-files manifest, evidence permissions, group offer. Shared helpers in scripts/install_common.sh. MCP registration moved to the README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
60 lines
1.9 KiB
Text
60 lines
1.9 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">
|
|
<!--
|
|
YARA/IOC feed update (macOS counterpart of strawberry-update.{service,timer,path}):
|
|
at load, every 24 h, and whenever the daemon creates feeds/update-requested
|
|
("Update now"; the updater removes it when it starts).
|
|
|
|
It downloads untrusted content, so it runs as the unprivileged _strawberry
|
|
user, which owns only the feeds directory. Group strawberry lets it read the
|
|
policy and ask the daemon to reload rules over the control socket.
|
|
-->
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>Label</key>
|
|
<string>com.strawberry.update</string>
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>/usr/local/bin/strawberry</string>
|
|
<string>rules</string>
|
|
<string>fetch</string>
|
|
<string>--config</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>_strawberry</string>
|
|
<key>GroupName</key>
|
|
<string>strawberry</string>
|
|
<key>Umask</key>
|
|
<integer>23</integer>
|
|
<key>RunAtLoad</key>
|
|
<true/>
|
|
<key>StartInterval</key>
|
|
<integer>86400</integer>
|
|
<key>KeepAlive</key>
|
|
<dict>
|
|
<key>PathState</key>
|
|
<dict>
|
|
<key>/var/db/strawberry/feeds/update-requested</key>
|
|
<true/>
|
|
</dict>
|
|
</dict>
|
|
<key>ThrottleInterval</key>
|
|
<integer>60</integer>
|
|
<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>
|