sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
13.77k stars 1.54k forks source link

Unity Editor License Issue. Unable to add new or old licenses #1551

Open PlanetRenox-zz opened 2 years ago

PlanetRenox-zz commented 2 years ago

Trying to open unity in sandboxed mode. Unable to create or add a new license. Nothing Ive tried works.

Steps to reproduce the behavior: Open unity hub. Try to create project.

isaak654 commented 2 years ago

Confirmed on one of the latest 1.0.10 test builds, you can't add a new license in Unity Editor while it's running sandboxed. The same program is also installed outside of the sandbox.

Download link: https://unity.com/download (UnityHubSetup.exe) Link to create a new account: https://id.unity.com Tested on a VM with Windows 10 21H1 x64 Windows Defender with default settings

license_issue_unity_editor

Long list of SBIE2205 errors: SBIE2205

Unsuccessful workarounds:

BlockNetworkFiles=n
BlockNetParam=n
UnrestrictedToken=y
UnfilteredToken=y

Possible cause: WMI, as mentioned in the log below:

Trace log 1.0.10 x64 ``` Unity Hub.exe (6604, 3364) - 15:12:58.166 ComClass (U) {228826AF-02E1-4226-A9E0-99A855E455A6} ImmersiveShellBroker Unity.Licensing.Client.exe (3204, 4700) - 15:12:59.647 ComClass (U) {4590F811-1D3A-11D0-891F-00AA004B2E24} WBEM Locator Unity.Licensing.Client.exe (3204, 4700) - 15:12:59.647 ComClass (U) Open {8BC3F05E-D86B-11D0-A075-00C04FB68820} Windows Management and Instrumentation Unity Hub.exe (6604, 3948) - 15:13:00.519 Pipe (U) \Device\HarddiskVolume2 Unity Hub.exe (6604, 3948) - 15:13:00.519 ComClass (U) {4590F811-1D3A-11D0-891F-00AA004B2E24} WBEM Locator Unity Hub.exe (6604, 3948) - 15:13:00.519 ComClass (U) Open {8BC3F05E-D86B-11D0-A075-00C04FB68820} Windows Management and Instrumentation Unity Hub.exe (6604, 3948) - 15:13:00.529 ComClass (U) {4590F811-1D3A-11D0-891F-00AA004B2E24} WBEM Locator Unity Hub.exe (6604, 3948) - 15:13:00.529 ComClass (U) Open {8BC3F05E-D86B-11D0-A075-00C04FB68820} Windows Management and Instrumentation Unity Hub.exe (6604, 3948) - 15:13:00.689 Pipe (U) \Device\HarddiskVolume2 Unity Hub.exe (6604, 3948) - 15:13:00.689 ComClass (U) {4590F811-1D3A-11D0-891F-00AA004B2E24} WBEM Locator Unity Hub.exe (6604, 3948) - 15:13:00.699 ComClass (U) Open {8BC3F05E-D86B-11D0-A075-00C04FB68820} Windows Management and Instrumentation Unity Hub.exe (6604, 3948) - 15:13:00.730 ComClass (U) {4590F811-1D3A-11D0-891F-00AA004B2E24} WBEM Locator Unity Hub.exe (6604, 3948) - 15:13:00.730 ComClass (U) Open {8BC3F05E-D86B-11D0-A075-00C04FB68820} Windows Management and Instrumentation Unity Hub.exe (6604, 3948) - 15:13:00.792 ComClass (U) {4590F811-1D3A-11D0-891F-00AA004B2E24} WBEM Locator Unity Hub.exe (6604, 3948) - 15:13:00.792 ComClass (U) Open {8BC3F05E-D86B-11D0-A075-00C04FB68820} Windows Management and Instrumentation ```
DavidXanatos commented 2 years ago

in build 1.0.10 when runnign in App Compartment Mode ImpersonateNamedPipe should work, please try it as soon as the build is out

isaak654 commented 2 years ago

in build 1.0.10 when runnign in App Compartment Mode ImpersonateNamedPipe should work, please try it as soon as the build is out

Just tested this issue with the final build 1.0.10. You will receive the following warning: SBIE2213 Windows Credentials cannot be stored in the sandbox So I added this line in the App Compartment sandbox in order to login correctly: OpenCredentials=y

After doing that, the personal license is correctly listed and recognized: unity_license

EDIT: The ImpersonateNamedPipe issue is still not fixed: same SBIE2205 errors as before.

Zymlex commented 5 months ago

Not the first program in which I encounter this exception in sandbox.

System.Security.Cryptography.CryptographicException: The interface is unknown.
   at System.Security.Cryptography.CngHelpers.OpenStorageProvider(CngProvider provider)
   at System.Security.Cryptography.CngKey.Import(ReadOnlySpan`1 keyBlob, String curveName, CngKeyBlobFormat format, CngProvider provider)
   at System.Security.Cryptography.CngKey.Import(Byte[] keyBlob, String curveName, CngKeyBlobFormat format, CngProvider provider)
   at System.Security.Cryptography.X509Certificates.X509Pal.DecodePublicKey(Oid oid, Byte[] encodedKeyValue, Byte[] encodedParameters, ICertificatePal certificatePal)
   at System.Security.Cryptography.X509Certificates.CertificateExtensionsCommon.GetPublicKey[T](X509Certificate2 certificate, Predicate`1 matchesConstraints)
   at System.Security.Cryptography.Xml.Utils.GetAnyPublicKey(X509Certificate2 certificate)
   at System.Security.Cryptography.Xml.SignedXml.CheckSignature(X509Certificate2 certificate, Boolean verifySignatureOnly)
   at Unity.Licensing.EntitlementResolver.Xml.XmlExtensions.ValidateSignature(XmlDocument xmlDoc, X509Certificate2 trustedCertificate, Boolean allowDelegation, String refId)
   at Unity.Licensing.EntitlementResolver.Xml.XmlReader`1.Read(Stream stream, Boolean requireSignature, Boolean validateSchema)
   at Unity.Licensing.EntitlementResolver.License.UnityLicense.ReadAndParseLicense(Stream licenseStream, X509Certificate2 certificate)
   at Unity.Licensing.EntitlementResolver.License.UnityLicense..ctor(String licenseFilePath, X509Certificate2 certificate, Boolean allowDelegation)
   at Unity.Licensing.EntitlementResolver.License.UnityLicense.GetLicense(String licenseFilePath, X509Certificate2 lsdCert)
   at Unity.Licensing.Client.Services.Helpers.LicenseFilesMapper.MapLicenseFilesToResult(IEnumerable`1 files, Boolean ignoreUlfLicenseFiles)