]> git.baikalelectronics.ru Git - kernel.git/commit
make /dev/kmem a config option
authorArjan van de Ven <arjan@linux.intel.com>
Tue, 29 Apr 2008 07:58:34 +0000 (00:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:05:59 +0000 (08:05 -0700)
commitf5d122dd109b32978f072900fa6674d100a2e4a7
treeeeba2401cfd0345647f3a8feec3a76d6be5dd3aa
parent2cc49c2fd31efcf3dd1d3564b1235bee38033318
make /dev/kmem a config option

Make /dev/kmem a config option; /dev/kmem is VERY rarely used, and when
used, it's generally for no good (rootkits tend to be the most common
users).  With this config option, users have the choice to disable
/dev/kmem, saving some size as well.

A patch to disable /dev/kmem has been in the Fedora and RHEL kernels for
4+ years now without any known problems or legit users of /dev/kmem.

[akpm@linux-foundation.org: make CONFIG_DEVKMEM default to y]
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/Kconfig
drivers/char/mem.c