[10718] in bugtraq

home help back first fref pref prev next nref lref last post

Re: /tmp symlink problems in SuSE Linux 6.1

daemon@ATHENA.MIT.EDU (Thomas Fischbacher)
Fri Jun 4 13:33:54 1999

Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Message-Id: <Pine.LNX.4.10.9906041632550.5853-100000@brauneck.cip.physik.uni-muenchen.de>
Date: 	Fri, 4 Jun 1999 16:36:46 +0200
Reply-To: Thomas Fischbacher <Thomas.Fischbacher@PHYSIK.UNI-MUENCHEN.DE>
From: Thomas Fischbacher <Thomas.Fischbacher@PHYSIK.UNI-MUENCHEN.DE>
X-To:         Thomas Biege <thomas@suse.de>
To: BUGTRAQ@NETSPACE.ORG
In-Reply-To:  <Pine.LNX.4.05.9906040934130.16301-100000@Galois.suse.de>

> Hi,
> we at SuSE could not reproduce this problem neither for
> man nor for dvips.

Ok, here is a log of what I just did five minutes ago:
(emacs -- M-x shell, btw.)


brauneck:~ # whoami
root
brauneck:~ # cd /tmp
brauneck:/tmp # cat /etc/SuSE-release
SuSE Linux 6.1 (i386)
VERSION = 6.1
brauneck:/tmp # rpm -q man
man-2.3.10-62
brauneck:/tmp # md5sum /usr/bin/man
b383967ce695352002f077680e375c62  /usr/bin/man
brauneck:/tmp # su tf
tf@brauneck:/tmp > export LS_OPTIONS=''
tf@brauneck:/tmp > export LS_COLORS=''
tf@brauneck:/tmp > ls zman*
ls: zman*: No such file or directory
tf@brauneck:/tmp > /bin/bash -c "echo $$"
6056
tf@brauneck:/tmp > # this gives me a current pid range
tf@brauneck:/tmp > perl -e 'for($i=6000;$i<7000;$i++){symlink "/etc/nologin", "/tmp/zman0${i}aaa";}'
tf@brauneck:/tmp > ls -l /tmp/zman06123aaa
lrwxrwxrwx   1 tf       stud           12 Jun  4 16:28 /tmp/zman06123aaa -> /etc/nologin
tf@brauneck:/tmp > ls -l /etc/nologin
ls: /etc/nologin: No such file or directory
tf@brauneck:/tmp > exit
brauneck:/tmp # man mmap
Reformatting mmap(2), please wait...
WARNING: terminal is not fully functional

-  (press RETURN)



MMAP(2)             Linux Programmer's Manual             MMAP(2)


NAME
       mmap, munmap - map or unmap files or devices into memory

SYNOPSIS
       #include <unistd.h>
       #include <sys/mman.h>

       #ifdef _POSIX_MAPPED_FILES

       void  *  mmap(void  *start,  size_t length, int prot , int
       flags, int fd, off_t offset);

       int munmap(void *start, size_t length);

       #endif

DESCRIPTION

 Manual page mmap(2) line 1q

brauneck:/tmp # brauneck:/tmp #
brauneck:/tmp # ls -la /etc/nologin
-rw-r--r--   1 root     root         4319 Jun  4 16:30 /etc/nologin
brauneck:/tmp # ls /tmp/zman0* | wc -l
    999
brauneck:/tmp # # Note that one link was removed!
brauneck:/tmp #

You see -- the problem definitely is not fiction! Come over to Munich and
see yourself if you want.


> Please send us a full list of "maybe" buggy tools, so we
> could evaluate them.

?

> PS: I never saw your email at your mailinglists.

?

--
regards,               tf@cip.physik.uni-muenchen.de              (o_
 Thomas Fischbacher -  http://www.cip.physik.uni-muenchen.de/~tf  //\
(lambda (n) ((lambda (p q r) (p p q r)) (lambda (g x y)           V_/_
(if (= x 0) y (g g (- x 1) (* x y)))) n 1))

home help back first fref pref prev next nref lref last post