changeset 5505:06e5df951d2f

Move LIBRESTRICT_ALLOW=/proc/self/fd from gcc.py into restrict.c. Coreutils's rm et al also need it.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Thu, 20 Aug 2009 20:54:15 +0200
parents a1ce4bc5aaee
children 7eea529f3f81
files gub/specs/cross/gcc.py librestrict/restrict.c
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/cross/gcc.py	Thu Aug 20 20:36:49 2009 +0200
+++ b/gub/specs/cross/gcc.py	Thu Aug 20 20:54:15 2009 +0200
@@ -48,11 +48,10 @@
                 + ' --with-nm=%(cross_prefix)s/bin/%(target_architecture)s-nm'
                 )
     def makeflags (self):
-        return (
-            ' tooldir="%(cross_prefix)s/%(target_architecture)s"'
-            + ' gcc_tooldir="%(prefix_dir)s/%(target_architecture)s"'
-            + ' LIBRESTRICT_ALLOW=/proc/self/fd:${LIBRESTRICT_ALLOW:/foe}'
-            )
+        return misc.join_lines ('''
+tooldir='%(cross_prefix)s/%(target_architecture)s
+gcc_tooldir='%(prefix_dir)s/%(target_architecture)s'
+''')
     def FAILED_attempt_to_avoid_post_install_MOVE_TARGET_LIBS_makeflags (self):
         return misc.join_lines ('''
 toolexeclibdir=%(system_prefix)s
--- a/librestrict/restrict.c	Thu Aug 20 20:36:49 2009 +0200
+++ b/librestrict/restrict.c	Thu Aug 20 20:54:15 2009 +0200
@@ -211,6 +211,7 @@
         add_allowed_path (allow);
       add_allowed_file ("/tmp");
       add_allowed_file ("/dev/null");
+      add_allowed_file ("/proc/self/fd");
     }
 }