Re: chmod of active swap file blocks

From: Andrew Morton
Date: Thu Jan 01 2004 - 05:14:34 EST


Neale Banks <neale@xxxxxxxxxxxxxxxx> wrote:
>
> How much of the original problem goes away if swapon(8) were to refuse to
> activate a file/device which has ownership/mode which it doesn't like?

I think swapon(8) should at least warn when the swapfile has inappropriate
permissions. It's an obvious and outright security hole.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/