From 92f4b05960804e5c5833fc47941477964ff595e0 Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Sat, 2 Apr 2022 17:37:11 +0200 Subject: [PATCH] 1.0.17 --- SandboxiePlus/SandMan/Forms/OptionsWindow.ui | 233 +++++++++--------- .../SandMan/Windows/OptionsGeneral.cpp | 11 + SandboxiePlus/SandMan/Windows/OptionsWindow.h | 2 + 3 files changed, 133 insertions(+), 113 deletions(-) diff --git a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui index 652ddbed..d25c724f 100644 --- a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui +++ b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui @@ -571,114 +571,6 @@ - - - - Open Windows Credentials Store (user mode) - - - - - - - - 0 - 0 - - - - Allow the print spooler to print to files outside the sandbox - - - - - - - Remove spooler restriction, printers can be installed outside the sandbox - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - Block read access to the clipboard - - - - - - - Open System Protected Storage - - - - - - - Block access to the printer spooler - - - - - - - - 75 - true - true - - - - Protect the system from sandboxed processes - - - Other restrictions - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 75 - true - true - - - - Protect the system from sandboxed processes - - - Printing restrictions - - - @@ -715,6 +607,121 @@ + + + + Block access to the printer spooler + + + + + + + + 75 + true + true + + + + Protect the system from sandboxed processes + + + Other restrictions + + + + + + + Open Windows Credentials Store (user mode) + + + + + + + Remove spooler restriction, printers can be installed outside the sandbox + + + + + + + Open System Protected Storage + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Prevent change to network and firewall parameters (user mode) + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Block read access to the clipboard + + + + + + + + 75 + true + true + + + + Protect the system from sandboxed processes + + + Printing restrictions + + + + + + + + 0 + 0 + + + + Allow the print spooler to print to files outside the sandbox + + + @@ -722,10 +729,10 @@ - - + + - Prevent change to network and firewall parameters (user mode) + Allow to read memory of unsandboxed processes (not recommended) @@ -2790,8 +2797,8 @@ instead of "*". 0 0 - 98 - 28 + 80 + 16 diff --git a/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp b/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp index 6605fd35..959c4eb5 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp @@ -71,6 +71,7 @@ void COptionsWindow::CreateGeneral() connect(ui.chkOpenCredentials, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); connect(ui.chkOpenProtectedStorage, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); connect(ui.chkCloseClipBoard, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); + connect(ui.chkVmRead, SIGNAL(clicked(bool)), this, SLOT(OnVmRead())); //connect(ui.chkOpenSmartCard, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); //connect(ui.chkOpenBluetooth, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); @@ -361,3 +362,13 @@ void COptionsWindow::OnBoxTypChanged() m_HoldBoxType = false; OnOptChanged(); } + +void COptionsWindow::OnVmRead() +{ + if (ui.chkVmRead->isChecked()) + SetAccessEntry(eIPC, "", eReadOnly, "$:*"); + else + DelAccessEntry(eIPC, "", eReadOnly, "$:*"); + m_AdvancedChanged = true; + OnOptChanged(); +} diff --git a/SandboxiePlus/SandMan/Windows/OptionsWindow.h b/SandboxiePlus/SandMan/Windows/OptionsWindow.h index 483698a4..fc8b2366 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsWindow.h +++ b/SandboxiePlus/SandMan/Windows/OptionsWindow.h @@ -52,6 +52,8 @@ private slots: void OnDelCommand(); void OnRunChanged() { m_GeneralChanged = true; OnOptChanged(); } + void OnVmRead(); + void OnAddGroup(); void OnAddProg(); void OnDelProg();