-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
Type: CertificateCertificate related issuesCertificate related issues
Description
Describe what you noticed and did
Hey there,
I noticed that there are extra license checks specifically for Chinese users in the code since version 1.15.10. Can someone explain why these were added? I’m curious about the reasoning behind it and how it affects users.
To illustrate, here are the relevant code snippets:
// code from SandboxiePlus/SandMan/OnlineUpdater.cpp
bool COnlineUpdater::IsLockRequired()
{
if (theConf->GetBool("Debug/LockedRegion", false))
return true;
if (g_CertInfo.lock_req)
return true;
LANGID LangID = 0;
if ((NtQueryInstallUILanguage(&LangID) == 0) && (LangID == 0x0804))
return true;
if (theGUI->m_LanguageId == 0x0804)
return true;
return false;
}
// Placeholder for code from Sandboxie/core/drv/verify.c
LANGID LangID = 0;
if(NT_SUCCESS(ZwQueryInstallUILanguage(&LangID)) && (LangID == 0x0804))
Verify_CertInfo.lock_req = 1;
if (Verify_CertInfo.lock_req && Verify_CertInfo.type != eCertEternal && Verify_CertInfo.type != eCertContributor) {
if (!Verify_CertInfo.locked)
Verify_CertInfo.active = 0;
if (!bNoCR) { // Check if a refresh of the cert is required
if (check_date.QuadPart + KphGetDateInterval(0, 4, 0) < LocalTime.QuadPart)
Verify_CertInfo.active = 0;
else if (check_date.QuadPart + KphGetDateInterval(0, 3, 0) < LocalTime.QuadPart)
Verify_CertInfo.grace_period = 1;
}
}
Thanks!
How often did you encounter it so far?
No response
Expected behavior
no
Affected program
Not relevant
Download link
Not relevant
Where is the program located?
Not relevant to my request.
Did the program or any related process close unexpectedly?
No, not at all.
Crash dump
No response
What version of Sandboxie are you running now?
Not relevant
Is it a new installation of Sandboxie?
I recently did a new clean installation.
Is it a regression from previous versions?
No response
In which sandbox type you have this problem?
In a standard isolation sandbox (yellow sandbox icon).
Can you reproduce this problem on a new empty sandbox?
I can confirm it also on a new empty sandbox.
What is your Windows edition and version?
Not relevant
In which Windows account you have this problem?
Not relevant to my request.
Please mention any installed security software
Not relevant
Did you previously enable some security policy settings outside Sandboxie?
No response
Trace log
No response
Sandboxie.ini configuration
Metadata
Metadata
Assignees
Labels
Type: CertificateCertificate related issuesCertificate related issues