From: Martin Mares Date: Sun, 3 Jun 2001 20:35:00 +0000 (+0000) Subject: Allow /proc/meminfo X-Git-Tag: python-dummy-working~505 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=55290a5179a1955c1755dbe11479970192564bc1;p=eval.git Allow /proc/meminfo --- diff --git a/src/box.c b/src/box.c index 2a409a9..477d7c8 100644 --- a/src/box.c +++ b/src/box.c @@ -143,7 +143,8 @@ valid_filename(unsigned long addr) && !strstr(namebuf, "..")) return; if (!strcmp(namebuf, "/dev/null") || - !strcmp(namebuf, "/dev/zero")) + !strcmp(namebuf, "/dev/zero") || + !strcmp(namebuf, "/proc/meminfo")) return; } die("Forbidden access to file `%s'.", namebuf);