[lkml]   [1998]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] modules_install
    GU> `make modules_install' creates some temporary files inside the kernel source
    GU> directory. However, if that directory is imported using NFS in the recommended
    GU> and secure way, root is not allowed to create files there. This patch solves
    GU> that problem by creating the temporary files in /tmp.

    GU> + ls *.o > /tmp/.allmods.$$$$; \

    NO! This creates a race condition allowing malicious user to overwrite any
    file if (s)he creates dozens of symlinks in /tmp. Using just pid to
    guarantee uniqueness of the name is not enough. And we don't want do depend
    on 'mktemp'... So I can't offer any good solution. A private directory in
    /tmp? In a shell script and without race conditions - how?

    Meelis Roos (

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

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