login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
29
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ease of attacking
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Sarah Sharp
Subject:
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ease of attacking
Date: Monday, November 29, 2010 - 9:33 am
On Fri, Nov 26, 2010 at 08:48:09AM +0100, Ingo Molnar wrote:
quoted text
> > * Linus Torvalds <torvalds@linux-foundation.org> wrote: > > > On Fri, Nov 19, 2010 at 11:19 AM, Sarah Sharp > > <sarah.a.sharp@linux.intel.com> wrote: > > > > > > .config and dmesg are attached. The box is running klogd 1.5.5ubuntu3 > > > (from Jaunty). Yes, I know that's old. I read the bit in the commit > > > about changing the permissions of kallsyms after boot, but if I can't > > > boot that doesn't help. Perhaps this can be made a configuration > > > option? > > > > It's not worth a config option. > > > > If it actually breaks user-space, I think we should just revert it. > > Sarah, > > Does your system boot fine if we make /proc/kallsyms simply an empty file to > unprivileged users? Something like the (untested ...) patch below.
Yes, that works. The system boots as normal. `cat /proc/kallsyms` returns an empty file, and `sudo cat /proc/kallsyms` does not. Sarah Sharp
quoted text
> diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c > index 6f6d091..d54c993 100644 > --- a/kernel/kallsyms.c > +++ b/kernel/kallsyms.c > @@ -465,7 +465,7 @@ static int s_show(struct seq_file *m, void *p) > struct kallsym_iter *iter = m->private; > > /* Some debugging symbols have no name. Ignore them. */ > - if (!iter->name[0]) > + if (!iter->name[0] || !capable(CAP_SYS_ADMIN)) > return 0; > > if (iter->module_name[0]) {
--
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] kernel: make /proc/kallsyms mode 400 to reduce eas ...
, Marcus Meissner
, (Tue Nov 16, 3:46 am)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Kyle McMartin
, (Tue Nov 16, 10:07 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Kyle Moffett
, (Tue Nov 16, 10:40 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Kyle Moffett
, (Tue Nov 16, 10:41 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Linus Torvalds
, (Tue Nov 16, 10:58 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Willy Tarreau
, (Tue Nov 16, 11:19 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Ingo Molnar
, (Thu Nov 18, 12:31 am)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Ingo Molnar
, (Thu Nov 18, 12:48 am)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Sarah Sharp
, (Fri Nov 19, 12:19 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Linus Torvalds
, (Fri Nov 19, 12:54 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, david
, (Fri Nov 19, 12:58 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Linus Torvalds
, (Fri Nov 19, 1:04 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Willy Tarreau
, (Fri Nov 19, 1:16 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, david
, (Fri Nov 19, 1:55 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Kees Cook
, (Fri Nov 19, 8:18 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Richard W.M. Jones
, (Sat Nov 20, 4:05 am)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Avi Kivity
, (Sat Nov 20, 4:32 am)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Pavel Machek
, (Tue Nov 23, 10:24 am)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Ingo Molnar
, (Fri Nov 26, 12:38 am)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Ingo Molnar
, (Fri Nov 26, 12:48 am)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Ingo Molnar
, (Fri Nov 26, 12:51 am)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Sarah Sharp
, (Mon Nov 29, 9:33 am)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Ingo Molnar
, (Mon Nov 29, 11:04 am)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, H. Peter Anvin
, (Mon Nov 29, 12:03 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, H. Peter Anvin
, (Mon Nov 29, 12:05 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Eric Paris
, (Mon Nov 29, 12:21 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, H. Peter Anvin
, (Mon Nov 29, 12:38 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Willy Tarreau
, (Mon Nov 29, 2:49 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Alan Cox
, (Mon Nov 29, 4:31 pm)
Re: [PATCH] kernel: make /proc/kallsyms mode 400 to reduce ...
, Ingo Molnar
, (Tue Nov 30, 4:58 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jarek Poplawski
Re: Network slowdown due to CFS
Srikar Dronamraju
[PATCH v2 11/11] Uprobes traceevents patch.
jimmy bahuleyan
Re: how about mutual compatibility between Linux's GPLv2 and GPLv3?
Greg KH
[003/129] xen: handle events as edge-triggered
git
:
Eyvind Bernhardsen
Re: Where has "git ls-remote" reference pattern matching gone?
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Todd Zullinger
Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters
Shawn O. Pearce
Re: Switching from CVS to GIT
Santi Béjar
Re: How to use git-fmt-merge-msg?
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
[Bluetooth] Make use of the default link policy settings
Linux Kernel Mailing List
x86/doc: mini-howto for using earlyprintk=dbgp
Linux Kernel Mailing List
geode lists are subscriber only
freebsd-current
:
Michael Moll
Re: Unable to boot on ECS K7S5A
=?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?=
Re: Root exploit for FreeBSD
FreeBSD Tinderbox
[head tinderbox] failure on ia64/ia64
Andrew Thompson
Re: USB2 makes moused insane
Garrett Cooper
Re: linux 3d applications keep crashing
linux-netdev
:
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Ramkrishna Vepa
[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Florian Fainelli
[PATCH] cpmac: fix all checkpatch errors and warnings
Alexey Dobriyan
[PATCH v2 2/6] netns ct: per-netns /proc/net/stat/nf_conntrack , /proc/net/stat/ip...
Colocation donated by:
Syndicate