[tools] Let gcc work in the sandbox.

This commit is contained in:
Andrew Hamilton 2016-11-27 23:36:55 +01:00
parent 2b08e4d490
commit 6489a11d4c
2 changed files with 3 additions and 1 deletions

3
BUGS
View file

@ -7,7 +7,6 @@ Current
- If a job is paused for longer than the timeout period, sometimes it has
the timed out status when un-paused.
- Tmp files are being left behind after shutdown.
- gcc is not working inside the sandbox.
Current (tool related)
@ -243,6 +242,8 @@ Fixed
- When shutting down "Exception ignored in:" noise appears. Four messages
for every worker running. This started with the move to asyncio for the
workers.
- gcc is not working inside the sandbox.
<- Let /dev/null through the sandbox.
Won't fix

View file

@ -59,6 +59,7 @@ class SandboxFs:
def __init__(self, holes=None):
self.holes = [] if holes is None else holes
self.holes += ["/dev/null"]
for hole in self.holes:
if not hole.startswith("/"):
raise ValueError("Holes must be absolute paths: %r" % hole)