More fixes for rustc, maybe

dev/git-series/gccdum
Matt Godbolt 9 years ago
parent a263a56b60
commit 28e6f2b51d

@ -2,7 +2,7 @@
export LD_PRELOAD=$(dirname $0)/libpreload.so
export ALLOWED_FOR_CREATE=/tmp
export ALLOWED_FOR_READ=/usr/local/include:/usr/include:/usr/lib:/usr/msp430:/usr/arm-linux-gnueabi/include:/tmp:/opt/:/dev/urandom:/etc/lsb-release:/etc/debian_version:/proc/self
export ALLOWED_FOR_READ=/usr/local/include:/usr/include:/usr/lib:/usr/msp430:/usr/arm-linux-gnueabi/include:/tmp:/opt/:/dev/urandom:/etc/lsb-release:/etc/debian_version:/proc/self:/proc/self/maps
# Last-gasp limits
ulimit -t 3 # CPU time in seconds
ulimit -v 500000 # virtual RAM limit in K

@ -40,8 +40,8 @@
static int allowed_match(const char* path, const char* okpath) {
char resolvedBuf[PATH_MAX];
const char* resolved = path;
if (!strcmp(resolved, "/proc/self")) {
// Leave references to /proc/self alone as its real path is different
if (!strncmp(resolved, "/proc/self", 10)) {
// Leave references to /proc/self.* alone as its real path is different
// each time.
} else {
resolved = realpath(path, resolvedBuf);

Loading…
Cancel
Save