Re: [PATCH] Masking kernel commandline parameters (2.6.7)

From: Andrew Morton
Date: Sun Aug 08 2004 - 15:47:05 EST


Juergen Pabel <jpabel@xxxxxxxxx> wrote:
>
> my patch allows for kernel commandline parameters (ie: from bootloader) to be masked in order to
> prevent later retrieval (/proc/cmdline for example).

In recent 2.6 kernels you can simply do a chmod on /proc/cmdline.

bix:/usr/src/bk25> cat /proc/cmdline
ro root=/dev/sda2 profile=1 vga=extended
bix:/usr/src/bk25> 0 chmod 0400 /proc/cmdline
bix:/usr/src/bk25> cat /proc/cmdline
cat: /proc/cmdline: Permission denied

-
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/