From 07b69f2a34b0e526b9f6cd150c1eabcb4d87ccef Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 13 Apr 2019 10:40:29 +0200 Subject: [PATCH] Prefix App Group with team ID in macOS Team ID is not a sensitive value. Fixes #79 --- Demo/BasicTunnel-macOS/BasicTunnel-macOS.entitlements | 4 ++++ Demo/BasicTunnel-macOS/ViewController.swift | 2 +- .../BasicTunnelExtension-macOS.entitlements | 4 ++++ Demo/Demo.xcodeproj/project.pbxproj | 4 ++-- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Demo/BasicTunnel-macOS/BasicTunnel-macOS.entitlements b/Demo/BasicTunnel-macOS/BasicTunnel-macOS.entitlements index 4e920af..2d63984 100644 --- a/Demo/BasicTunnel-macOS/BasicTunnel-macOS.entitlements +++ b/Demo/BasicTunnel-macOS/BasicTunnel-macOS.entitlements @@ -8,6 +8,10 @@ com.apple.security.app-sandbox + com.apple.security.application-groups + + $(TeamIdentifierPrefix)group.com.algoritmico.macos.demo.BasicTunnel + com.apple.security.network.client diff --git a/Demo/BasicTunnel-macOS/ViewController.swift b/Demo/BasicTunnel-macOS/ViewController.swift index 7021931..ebe3816 100644 --- a/Demo/BasicTunnel-macOS/ViewController.swift +++ b/Demo/BasicTunnel-macOS/ViewController.swift @@ -76,7 +76,7 @@ YDQ8z9v+DMO6iwyIDRiU """) extension ViewController { - private static let appGroup = "group.com.algoritmico.macos.demo.BasicTunnel" + private static let appGroup = "DTDYD63ZX9.group.com.algoritmico.macos.demo.BasicTunnel" private static let bundleIdentifier = "com.algoritmico.macos.demo.BasicTunnel.BasicTunnelExtension" diff --git a/Demo/BasicTunnelExtension-macOS/BasicTunnelExtension-macOS.entitlements b/Demo/BasicTunnelExtension-macOS/BasicTunnelExtension-macOS.entitlements index 4e920af..2d63984 100644 --- a/Demo/BasicTunnelExtension-macOS/BasicTunnelExtension-macOS.entitlements +++ b/Demo/BasicTunnelExtension-macOS/BasicTunnelExtension-macOS.entitlements @@ -8,6 +8,10 @@ com.apple.security.app-sandbox + com.apple.security.application-groups + + $(TeamIdentifierPrefix)group.com.algoritmico.macos.demo.BasicTunnel + com.apple.security.network.client diff --git a/Demo/Demo.xcodeproj/project.pbxproj b/Demo/Demo.xcodeproj/project.pbxproj index 727d092..9441b0a 100644 --- a/Demo/Demo.xcodeproj/project.pbxproj +++ b/Demo/Demo.xcodeproj/project.pbxproj @@ -400,7 +400,7 @@ ProvisioningStyle = Automatic; SystemCapabilities = { com.apple.ApplicationGroups.Mac = { - enabled = 0; + enabled = 1; }; com.apple.Keychain = { enabled = 0; @@ -419,7 +419,7 @@ ProvisioningStyle = Automatic; SystemCapabilities = { com.apple.ApplicationGroups.Mac = { - enabled = 0; + enabled = 1; }; com.apple.Keychain = { enabled = 0;