Blame README_d/README.tests

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