lkml.org 
[lkml]   [2004]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Masking kernel commandline parameters (2.6.7)
Juergen Pabel <jpabel@akkaya.de> 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.077 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site