Re: xmms/xchat full access shared memory segments (and Mozilla)

From: Ian Freislich (iangat_private)
Date: Sat Dec 15 2001 - 22:27:49 PST

  • Next message: http-equivat_private: "Re: MSIE may download and run progams automatically - NOT SO FAST"

    Hi
    
    Don't think that Linux has much to do with the permissions of the
    IPC, that's pretty much left up to the program.  However, FWIW on
    my system (FreeBSD) I checked because I use xmms as well it appears
    that Mozilla has the same problem:
    
    [copernicus] ~ $ ipcs -p -m
    Shared Memory:
    T     ID     KEY        MODE       OWNER    GROUP  CPID  LPID
    m 262146      0     --rwarwarwa     ianf    guest  54951    331
    m 1769475     0     --rwarwarwa     ianf    guest  91109    331
    
    [copernicus] ~ $ ps -p 54951
      PID  TT  STAT      TIME COMMAND
    54951  p8- S    147:52.84 xmms
    [copernicus] ~ $ ps -p 91109
      PID  TT  STAT      TIME COMMAND
    91109  ??  S     15:20.62 ./mozilla-bin
    
    
    > On slackware 8 :
    > 
    > bash-2.05$ ipcs -m
    > 
    > ------ Shared Memory Segments --------
    > key        shmid      owner      perms      bytes      nattch     status     
    > 0x00000000 4216960    mayhem    777        196608     2          dest        
    > 0x00000000 7636737    mayhem    777        196608     2          dest        
     
    > 
    > bash-2.05$ ipcs -p -m
    > 
    > ------ Shared Memory Creator/Last-op --------
    > shmid      owner      cpid       lpid      
    > 4216960    mayhem     3921       1406      
    > 7636737    mayhem     26206      26209     
    > 
    > bash-2.05$ cat /proc/3921/cmdline ; echo
    > /opt/gnome/bin/xmms
    > bash-2.05$ cat /proc/26206/cmdline ; echo
    > /opt/gnome/bin/xchat
    > bash-2.05$ 
    
    --
    Ian Freislich
    



    This archive was generated by hypermail 2b30 : Mon Dec 17 2001 - 11:56:51 PST