Blame README_d/README.tests

Packit Service f629e6
Date: Sat, 22 Apr 2000 06:07:06 -0600 (MDT)
Packit Service f629e6
From: "Nelson H. F. Beebe" <beebe@math.utah.edu>
Packit Service f629e6
Cc: beebe@math.utah.edu, sysstaff@math.utah.edu, othmer@math.utah.edu
Packit Service f629e6
Subject: gawk-3.0.4 and a GNU/Linux gotcha
Packit Service f629e6
Packit Service f629e6
Yesterday, I was assisting a colleague install some software on his
Packit Service f629e6
GNU/Linux machine for which uname -r reports 2.2.14.
Packit Service f629e6
Packit Service f629e6
A (mis)feature of this system, which I've never encountered before,
Packit Service f629e6
broke the build of one of my programs, and also of gawk-3.0.4.
Packit Service f629e6
Packit Service f629e6
Namely, the kernel will not execute anything that resides in /tmp,
Packit Service f629e6
though it will if the same script is in /usr/tmp!
Packit Service f629e6
Packit Service f629e6
% cat /tmp/foo.sh
Packit Service f629e6
#! /bin/sh
Packit Service f629e6
echo hello
Packit Service f629e6
Packit Service f629e6
ls -l /tmp/foo.sh
Packit Service f629e6
-rwxr-xr-x   1 othmer   math           22 Apr 21 10:34 /tmp/foo.sh*
Packit Service f629e6
Packit Service f629e6
% /tmp/foo.sh
Packit Service f629e6
bash: /tmp/foo.sh: Permission denied
Packit Service f629e6
Packit Service f629e6
% cp /tmp/foo.sh /usr/tmp
Packit Service f629e6
Packit Service f629e6
% /usr/tmp/foo.sh
Packit Service f629e6
hello
Packit Service f629e6
Packit Service f629e6
Thus, programs that do a temporary install in /tmp, as some of mine do
Packit Service f629e6
in order to run the validation suite, will fail.
Packit Service f629e6
Packit Service f629e6
gawk-3.0.4, and likely other gawk versions, hits this problem too. It
Packit Service f629e6
fails because test/poundbang starts with
Packit Service f629e6
Packit Service f629e6
#! /tmp/gawk -f
Packit Service f629e6
Packit Service f629e6
I tracked down where it comes from:
Packit Service f629e6
Packit Service f629e6
% grep /tmp /etc/fstab
Packit Service f629e6
/dev/hda3 /tmp ext2 rw,nosuid,noexec,nouser,auto,async,nodev 1 1
Packit Service f629e6
                              !!!!!!
Packit Service f629e6
Packit Service f629e6
Since this is done via a mount command, potentially ANY directory tree
Packit Service f629e6
could be mounted with noexec.