[lkml]   [1998]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: swapfile security weakeness
    On Thu, 5 Nov 1998, Jakub Vlasek wrote:

    >i've found that active swapfile could be deleted, which is
    >IMHO very dangerous (set immutable flag on in sys_swapon call?). Also,
    >sys_swapon should check whether owner of swapfile is root and is readable
    >only to root ( memory readableby anyone? hmm...)

    KUDOS TO YOU!!!! I actually *DID* that about a year and a half
    ago. I had 2 swap files and didn't need them both. I swapoff'd
    one of them and deleted the wrong one. As a result I got major
    kernel panics until the system froze, then when I rebooted I had
    hard disk corruption on partitions that weren't even mounted in
    Linux. I lost my D: drive in MSDOS which took 8 hours of
    fiddling and reconstructing in Norton Diskedit to recover some

    So, I agree, something should really be done to fix that, even if
    only in userland.

    Mike A. Harris - Computer Consultant - Linux advocate

    Linux software galore:

    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:45    [W:0.019 / U:71.144 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site