lkml.org 
[lkml]   [2003]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: hard links create local DoS vulnerability and security problems
    From
    Date
    On Mon, 2003-11-24 at 17:36, Jakob Lell wrote:
    > To solve the problem, the kernel shouldn't allow users to create hard links to
    > files belonging to someone else.

    chmod(fn, 0);
    truncate(fn, 0);
    unlink(fn);

    then just the inode remains.

    --
    // Gianni Tedesco (gianni at scaramanga dot co dot uk)
    lynx --source www.scaramanga.co.uk/scaramanga.asc | gpg --import
    8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2005-03-22 13:58    [W:0.018 / U:91.528 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site