# HG changeset patch # User Jan Nieuwenhuizen # Date 1250794455 -7200 # Node ID 06e5df951d2f4d284af46260c1604fbdb04410cf # Parent a1ce4bc5aaee1c633300d285d8213d7c54491d5d Move LIBRESTRICT_ALLOW=/proc/self/fd from gcc.py into restrict.c. Coreutils's rm et al also need it. diff -r a1ce4bc5aaee -r 06e5df951d2f gub/specs/cross/gcc.py --- 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 diff -r a1ce4bc5aaee -r 06e5df951d2f librestrict/restrict.c --- 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"); } }