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
mkversion version/mkversion: enforce synology versions within int32 range 2024-03-08 12:47:59 -05:00
.gitignore
cmdname.go
cmdname_ios.go
cmp.go
cmp_test.go
export_test.go
modinfo_test.go all: cleanup unused code, part 1 (#10661) 2023-12-20 14:50:30 -08:00
print.go
prop.go version/prop: remove IsMacAppSandboxEnabled (#11461) 2024-03-19 14:50:34 -07:00
race.go
race_off.go
version.go
version_test.go