lkml.org 
[lkml]   [2000]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: RFC/PATCH: Random pid generation
    From
    Date
    "Sean Hunter" <sean@uncarved.co.uk> writes:

    > You run your program, but I have created a simlink in /tmp with the
    > same name (because the name is guessable).

    It is independent of PIDs being guessable or not. With really random
    PIDs you can still create link(s) in /tmp and after some number of tries
    you can win the race (especially when you can execute the suid program
    in question yourself).

    32 bits would be some help here, but that doesn't fixes the problem,
    only makes you wait longer.
    --
    Krzysztof Halasa
    Network Administrator

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:55    [W:0.024 / U:60.300 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site