Austin Morton
bbff26fbc3
Add sandbox support for nsjail
2020-02-18 10:56:34 -05:00
Partouf
20dbbf88d1
bugfix for when process cant be spawned
2019-07-19 13:27:42 +02:00
Matt Godbolt
2314ad035e
Added an ldPath for every compiler (defaults to sensible relative locations), and pass this when running executables. Should address #1399
2019-05-28 14:39:26 -05:00
Matt Godbolt
c98dee650e
Remote --timeout from firejail: it adds >1s per invocation! Should help with #1394
2019-05-24 17:18:20 -05:00
Matt Godbolt
c44a88be5b
Add address space limitations and timeouts. Use for compiler and sandbox limits. Should fix #1393 and helps #429
2019-05-24 10:32:16 -05:00
Matt Godbolt
2dc15a9093
Minor logging fixes; use new command line flags for sandbox
2019-05-20 21:51:12 -05:00
Matt Godbolt
12bd66d50c
Workaround for now until we have another firejail patch
2019-05-20 20:26:52 -05:00
Matt Godbolt
d516ef42cd
Assume a patched CE-specific version of firejail to get a private cwd, and ensure proper cleanup and exit code
2019-05-20 15:22:32 -05:00
Matt Godbolt
1114f6e428
Fix up handling of error indicators. Fixes #1384
2019-05-19 15:13:12 -05:00
Matt Godbolt
0e8bcf8eba
Run wine processes in a single, shared, sandbox. Keep a single long-lived CMD around which also implicitly creates the wineserver. Re-isolate ipc
2019-05-17 11:33:56 -05:00
Matt Godbolt
5bee8376eb
Fix log message
2019-05-17 08:32:12 -05:00
Matt Godbolt
1f6e4c8f67
Log updates; lots of logging was missing since we moved to the new logger
2019-05-16 17:30:15 -05:00
Matt Godbolt
bebd447154
Misc tidyups in exec
2019-05-16 15:28:28 -05:00
Matt Godbolt
4bcffc9356
Make output available to/from wine server and log exit
2019-05-16 15:25:46 -05:00
Matt Godbolt
52c40dfc1e
Make fonts available to wine to shut it up. Give WINE runs a private home dir (seems to prevent an occasional hang...)
2019-05-16 15:11:06 -05:00
Matt Godbolt
4a1db6cce1
Run firejail in quiet mode
2019-05-14 12:48:12 -05:00
Matt Godbolt
3f138b1a09
Culmination of several days' worth of work towards running WINE under firejail. See #429
2019-05-13 10:45:24 -05:00
Matt Godbolt
26984ce461
Move all execution to optionally run in firejail (disabled by default)
2019-05-08 14:55:22 -05:00
Matt Godbolt
4639fbedba
First sketching of firejail support in mainline (woo). See #429
2019-05-07 16:20:41 -05:00
Partouf
c1df52750d
log cwd used
2019-03-03 15:25:27 +01:00
Partouf
6e6e929a4a
make backward compatible with pervious version
2018-11-08 16:58:34 +01:00
Partouf
b691b3f52e
support for binary mode on VS compilers
2018-11-08 16:52:31 +01:00
Patrick Quist
ad98a4895b
lint fix
2018-11-05 01:09:49 +01:00
Petter Wahlman
a6ac90b555
lib/exec.js: verify stream validity
...
* setupOnError
* setupStream
These checks prevent the following error in the output window:
"Internal Compiler Explorer error: TypeError: Cannot read property
'on' of undefined"
2018-09-25 21:58:18 +02:00
Nicole Mazzuca
9ddf22f090
Support Visual C++ and Windows well
...
This commit adds support for hosting on windows, as well as better
support for the Visual C++ compiler. Specific interesting changes are:
- switch from /FAsc to /FA
- order functions in file order
- support demangling win32-style identifiers with undname
- clang++ and vc++ on win32 host are both supported
2018-07-28 15:18:43 -07:00
Partouf
0f4908a75c
fix #983
2018-06-29 21:05:44 +02:00
Matt Godbolt
f9fd86fc24
Don't mutate caller's arguments when using a compiler-wrapper. Fixes 881
2018-03-28 03:24:17 -05:00
RabsRincon
abb391f112
Enforce max-statement/line & further unify UI
2018-03-24 23:12:27 +01:00
RabsRincon
760bb3514e
Cleanup some code
2018-03-19 03:53:15 +01:00
RabsRincon
ae37f93288
Show apropiated error messages on compiler UI
...
Fixes #325
2018-03-06 09:28:17 +01:00
RabsRincon
6ef87b5ef9
Fix copyright dates and normalize text
2018-02-27 14:58:21 +01:00
RabsRincon
109e3f238b
COnstify lib/exec.js
2018-01-18 20:36:07 +01:00
partouf
24c9bd7d8c
make compile-wrapper always work no matter where the cwd is
2018-01-07 19:33:58 +01:00
partouf
404a9c110b
basic setup for nasm and gnu as
2018-01-06 07:23:28 +01:00
RabsRincon
fc75208dac
New year, new date
2018-01-01 16:44:04 +01:00
Andrew Pardoe
633ef105d2
PR feedback fixes
2017-12-17 20:46:48 -08:00
Andrew Pardoe
bbf1407109
Fix variable redeclaration for Travis + WSL check
2017-12-16 23:11:48 -08:00
Andrew Pardoe
050e41b05f
Add winTmp, but keep user option of opt tmpDir.
...
Add another environment setting of winTmp that maps automatically to the
Windows %TEMP% directory. Duplicate code that deals with the tmpDir for
each so that we only run Windows-volume processes on the Windows volume.
Preserve the ability of the user to specify a tmpDir with --tmpDir=foo.
2017-12-16 22:49:57 -08:00
Matt Godbolt
6299210cfa
Add execeution tests
2017-12-11 14:52:04 -06:00
RabsRincon
8fffcfaa10
Avoid unnecessary type coercion check
2017-11-25 01:02:07 +01:00
Andrew Pardoe
8aade5f7cb
Merge remote-tracking branch 'godbolt/master'
2017-09-27 10:55:46 -07:00
Matt Godbolt
71709f1a15
Allow user-selectable sandbox types. Default to 'none' to not use docker shenanigans
2017-08-25 07:16:22 -05:00
Andrew Pardoe
78cf1209d8
Cleaned up changes to get rid of crazy parse fail
2017-08-17 22:19:58 -07:00
Matt Godbolt
a9c3898a4a
Revert "Massive hack to try and get docker-in-docker working"
...
This reverts commit cecbed040e .
2017-05-15 21:42:59 -05:00
Matt Godbolt
cecbed040e
Massive hack to try and get docker-in-docker working
2017-05-15 21:21:40 -05:00
Matt Godbolt
d43c4bd880
More execution fixes
2017-05-08 22:40:44 -05:00
Matt Godbolt
20c1332905
Add optio for execution
...
Disabled for prod (still).
@lefticus / @rabsrincon to enable locally put
```
supportsExecute=true
```
in your local `compiler-explorer.local.properties` or similar.
2017-05-08 19:03:10 -05:00
Matt Godbolt
33b801ee76
Merge branch 'master' into execution
2017-03-22 21:07:35 -05:00
Matt Godbolt
e7e4bc65df
Merge branch 'master' into execution
2017-02-04 09:02:46 -06:00
Matt Godbolt
806e1bdd32
Docker-fu to get cleaned-up, time-killed sandboxed executables
2017-01-08 21:30:00 -06:00