Debian Codegraph @

README_d/README.tests

raw
1 Date: Sat, 22 Apr 2000 06:07:06 -0600 (MDT)
2 From: "Nelson H. F. Beebe" <[email protected]>
3 Cc: [email protected], [email protected], [email protected]
4 Subject: gawk-3.0.4 and a GNU/Linux gotcha
5
6 Yesterday, I was assisting a colleague install some software on his
7 GNU/Linux machine for which uname -r reports 2.2.14.
8
9 A (mis)feature of this system, which I've never encountered before,
10 broke the build of one of my programs, and also of gawk-3.0.4.
11
12 Namely, the kernel will not execute anything that resides in /tmp,
13 though it will if the same script is in /usr/tmp!
14
15 % cat /tmp/foo.sh
16 #! /bin/sh
17 echo hello
18
19 ls -l /tmp/foo.sh
20 -rwxr-xr-x 1 othmer math 22 Apr 21 10:34 /tmp/foo.sh*
21
22 % /tmp/foo.sh
23 bash: /tmp/foo.sh: Permission denied
24
25 % cp /tmp/foo.sh /usr/tmp
26
27 % /usr/tmp/foo.sh
28 hello
29
30 Thus, programs that do a temporary install in /tmp, as some of mine do
31 in order to run the validation suite, will fail.
32
33 gawk-3.0.4, and likely other gawk versions, hits this problem too. It
34 fails because test/poundbang starts with
35
36 #! /tmp/gawk -f
37
38 I tracked down where it comes from:
39
40 % grep /tmp /etc/fstab
41 /dev/hda3 /tmp ext2 rw,nosuid,noexec,nouser,auto,async,nodev 1 1
42 !!!!!!
43
44 Since this is done via a mount command, potentially ANY directory tree
45 could be mounted with noexec.