File tree Expand file tree Collapse file tree
src/main/java/the/bytecode/club/bytecodeviewer/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545
4646public class SecurityMan extends SecurityManager
4747{
48+ private static final boolean disableExecSandbox = true ;
49+ private static final boolean disableDiskWriteSandbox = true ;
50+
4851 private final AtomicInteger silentExec = new AtomicInteger (1 );
4952 private boolean printing = false ;
5053 private boolean printingPackage = false ;
@@ -76,6 +79,10 @@ public void setPrintingPackage(boolean printingPackage)
7679 @ Override
7780 public void checkExec (String cmd )
7881 {
82+ //This was disabled on 02-13-2022, at some point in the future I will fix the compatibility issues and re-enable it.
83+ if (disableExecSandbox )
84+ return ;
85+
7986 //incoming command must contain the following or it will be automatically denied
8087 String [] execWhitelist =
8188 {
@@ -316,6 +323,10 @@ public void checkWrite(FileDescriptor fd) {
316323 public void checkWrite (String file ) {
317324 if (printing )
318325 System .out .println ("Writing: " + file );
326+
327+ //This was disabled on 02-13-2022, at some point in the future I will fix the compatibility issues and re-enable it.
328+ if (disableDiskWriteSandbox )
329+ return ;
319330
320331 try
321332 {
You can’t perform that action at this time.
0 commit comments