Re: /tmp symlink problems in SuSE Linux 6.1

From: Thomas Fischbacher (Thomas.Fischbacherat_private-MUENCHEN.DE)
Date: Fri Jun 04 1999 - 07:36:46 PDT

  • Next message: markaat_private: "Re: weaknesses in dns label decoding,"

    > 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,               tfat_private-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))
    



    This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 14:48:11 PDT