Full Disclosure mailing list archives

Re: usb_modeswitch/pppd -detach


From: "Larry W. Cashdollar" <larry0 () me com>
Date: Sun, 22 Jan 2012 02:38:57 +0000 (GMT)

Hi,

This is still a race condition since the pid can be guessed easily as well.  It's better to use mktemp 
/tmp/debug.XXXXXXXXXX.

-- Larry C$


On Jan 21, 2012, at 02:14 PM, srm <srm () suckless org> wrote:



So, the problem is definitive in the community package of archlinux.
*sigh*. I checked version 1.2.2 from

http://www.draisberghof.de/usb_modeswitch/#download

It doesn't contain the '/tmp/debug' statement.

However: The following version has the debug statement:
https://www.archlinux.org/packages/community/i686/usb_modeswitch/

,grep -n '/tmp/debug' usb_modeswitch.sh
66: echo "symlink-name: $2" >/tmp/debug


A possible quick fix could be to append $$:
66: echo "symlink-name: $2" >/tmp/debug.$$

Greetings
srm

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

Current thread: