tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: tap(4) interface management
On Wed, May 13, 2009 at 05:18:55PM -0400, der Mouse wrote:
> > I think there is no difference because there can be only one fd per
> > device with tap anyway
>
> Not quite; consider dup() and fork().
Both dup() and fork() have the same effect - extra 'fd' referencing the 'file'.
open("/dev/fd/n", ...) will give you a 2nd kernel file structure.
while (open("/dev/fd/0", ...) != -1);
is a good local user DoS attack :-)
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index