* [PATCH 6/7] procfs privacy: /proc/kallsyms
@ 2005-04-18 18:53 Lorenzo Hernández García-Hierro
0 siblings, 0 replies; only message in thread
From: Lorenzo Hernández García-Hierro @ 2005-04-18 18:53 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 352 bytes --]
This patch changes the permissions of the procfs entry kallsyms, thus,
non-root users are restricted from accessing it.
It's also available at:
http://pearls.tuxedo-es.org/patches/security/proc-privacy-1_kernel_kallsyms.c.patch
--
Lorenzo Hernández García-Hierro <lorenzo@gnu.org>
[1024D/6F2B2DEC] & [2048g/9AE91A22][http://tuxedo-es.org]
[-- Attachment #1.2: proc-privacy-1_kernel_kallsyms.c.patch --]
[-- Type: text/x-patch, Size: 514 bytes --]
diff -puN kernel/kallsyms.c~proc-privacy-1 kernel/kallsyms.c
--- linux-2.6.11/kernel/kallsyms.c~proc-privacy-1 2005-04-17 18:06:01.380119984 +0200
+++ linux-2.6.11-lorenzo/kernel/kallsyms.c 2005-04-17 18:06:27.378167680 +0200
@@ -388,7 +388,7 @@ int __init kallsyms_init(void)
{
struct proc_dir_entry *entry;
- entry = create_proc_entry("kallsyms", 0444, NULL);
+ entry = create_proc_entry("kallsyms", S_IFREG | S_IRUSR, NULL);
if (entry)
entry->proc_fops = &kallsyms_operations;
return 0;
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-18 19:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-18 18:53 [PATCH 6/7] procfs privacy: /proc/kallsyms Lorenzo Hernández García-Hierro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®