This commit is contained in:
DavidXanatos 2023-04-24 17:30:02 +02:00
parent 60a2463b29
commit 8fa158cade
3 changed files with 12 additions and 2 deletions

View File

@ -508,7 +508,7 @@ check:
if (Box_IsBoxedPath(proc->box, file, &Name->Name)) {
if(Conf_Get_Boolean(NULL, L"NotifyImageLoadDenied", 0, TRUE))
if(Conf_Get_Boolean(proc->box->name, L"NotifyImageLoadDenied", 0, TRUE))
Log_Msg_Process(MSG_1305, Name->Name.Buffer + (proc->box->file_path_len/sizeof(WCHAR) - 1), NULL, proc->box->session_id, proc->pid);
Log_Debug_Msg(MONITOR_IMAGE | MONITOR_DENY, NULL, Name->Name.Buffer);

View File

@ -98,7 +98,7 @@ void COptionsWindow::CreateAdvanced()
connect(ui.btnDelHostProcess, SIGNAL(clicked(bool)), this, SLOT(OnDelHostProcess()));
connect(ui.chkShowHostProcTmpl, SIGNAL(clicked(bool)), this, SLOT(OnShowHostProcTmpl()));
connect(ui.chkConfidential, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); // todo notify premium feature
connect(ui.chkHostProtect, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged()));
connect(ui.chkHostProtect, SIGNAL(clicked(bool)), this, SLOT(OnHostProtectChanged()));
connect(ui.chkHostProtectMsg, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged()));
connect(ui.btnAddUser, SIGNAL(clicked(bool)), this, SLOT(OnAddUser()));
@ -135,7 +135,9 @@ void COptionsWindow::LoadAdvanced()
ui.chkOpenLsaEndpoint->setChecked(m_pBox->GetBool("OpenLsaEndpoint", false));
ui.chkHostProtect->setChecked(m_pBox->GetBool("ProtectHostImages", false));
ui.chkHostProtectMsg->setEnabled(ui.chkHostProtect->isChecked());
ui.chkHostProtectMsg->setChecked(m_pBox->GetBool("NotifyImageLoadDenied", true));
ReadGlobalCheck(ui.chkSbieLogon, "SandboxieLogon", false);
LoadOptionList();
@ -446,6 +448,12 @@ void COptionsWindow::OnNoWindowRename()
DelAccessEntry(eWnd, "", eOpen, "#");
}
void COptionsWindow::OnHostProtectChanged()
{
ui.chkHostProtectMsg->setEnabled(ui.chkHostProtect->isChecked());
OnAdvancedChanged();
}
// options
void COptionsWindow::LoadOptionList()
{

View File

@ -103,6 +103,8 @@ private slots:
//void OnShowStartTmpl() { LoadStartTmpl(true); }
void OnStartChanged(QTreeWidgetItem* pItem, int Index);
void OnHostProtectChanged();
// net
void OnINetItemDoubleClicked(QTreeWidgetItem* pItem, int Column);
void OnINetSelectionChanged() { CloseINetEdit(); OnOptChanged();}