[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [suse-security] gs read shared libraries from working directory ??



Nicolae Mihalache wrote:
> Just tried this on a SuSE 6.4 system:
> 
[...]
> mache@ci:~ > cp /lib/libc.so.6 .
> 
> mache@ci:~ > ldd /usr/bin/gs
[...]
>  libm.so.6 => /lib/libm.so.6 (0x40181000)
>  libc.so.6 => libc.so.6 (0x4019e000)       <-- Look at this line 
>  /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
[...]
> 
> So if I download a archive containing a lot of ps files and a shared
> library and try to see one postscript with gs(or gv or ghostscript) ...... 

The same on debian potato:
juergen@theomp12:/tmp$ ldd /usr/bin/gs | grep libc
        libc.so.6 => /lib/libc.so.6 (0x401f2000)
juergen@theomp12:/tmp$ touch libc.so.6 
juergen@theomp12:/tmp$ ldd /usr/bin/gs            
/usr/bin/gs: error in loading shared libraries: libc.so.6: cannot read file data: No such file or directory
juergen@theomp12:/tmp$ cp /lib/libc.so.6 .
juergen@theomp12:/tmp$ ldd /usr/bin/gs | grep libc
        libc.so.6 => libc.so.6 (0x401f2000)
juergen@theomp12:/tmp$ 

-- 
\ J. Dollinger Uni Ulm | zeitnot@irc | http://www.home.pages.de/~zeitnot/
 \    "What're quantum mechanics?"   --   "I don't know. People who    /
  \    repair quantums, I suppose."         (Terry Pratchett, Eric)   /



Reply to: