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