tailscale/version
Andrea Gottardo 6288c9b41e
version/prop: remove IsMacAppSandboxEnabled (#11461)
Fixes tailscale/corp#18441

For a few days, IsMacAppStore() has been returning `false` on App Store builds (IPN-macOS target in Xcode).

I regressed this in #11369 by introducing logic to detect the sandbox by checking for the APP_SANDBOX_CONTAINER_ID environment variable. I thought that was a more robust approach instead of checking the name of the executable. However, it appears that on recent macOS versions this environment variable is no longer getting set, so we should go back to the previous logic that checks for the executable path, or HOME containing references to macsys.

This PR also adds additional checks to the logic by also checking XPC_SERVICE_NAME in addition to HOME where possible. That environment variable is set inside the network extension, either macos or macsys and is good to look at if for any reason HOME is not set.
2024-03-19 14:50:34 -07:00
..
distro cmd/tailscale/cli,version/distro: update support for Alpine (#8701) 2023-07-24 16:53:15 -07:00
mkversion version/mkversion: enforce synology versions within int32 range 2024-03-08 12:47:59 -05:00
.gitignore version: greatly simplify redo nonsense, now that we use VERSION. 2020-11-02 19:54:44 -08:00
cmdname.go all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our fork 2023-02-01 15:23:54 -08:00
cmdname_ios.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cmp.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cmp_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
export_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
modinfo_test.go all: cleanup unused code, part 1 (#10661) 2023-12-20 14:50:30 -08:00
print.go version: make all exported funcs compile-time constant or lazy 2023-02-11 07:29:55 +00:00
prop.go version/prop: remove IsMacAppSandboxEnabled (#11461) 2024-03-19 14:50:34 -07:00
race.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
race_off.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
version.go version: properly handle vcs.modified when it's "false" 2023-05-07 09:15:38 -07:00
version_test.go version: make all exported funcs compile-time constant or lazy 2023-02-11 07:29:55 +00:00