* unexporting sys_call_table a good idea?
@ 2003-04-01 5:03 Paul Clements (home)
2003-04-01 5:18 ` Kasper Dupont
0 siblings, 1 reply; 5+ messages in thread
From: Paul Clements (home) @ 2003-04-01 5:03 UTC (permalink / raw)
To: linux-kernel
Hi all,
given the recent ptrace-related security bug, it sure would be nice to
have sys_call_table exported, so that I could just disable ptrace
altogether on affected systems (where no one is doing any debugging or
devel work, anyway)... I realize that there are race conditions, etc.,
with replacing syscalls, but could those not be solved?... as it is,
rather than being able to simply compile an external module (which
disables ptrace) and load it on affected systems, I am forced to
recompile an entire kernel, install it on the affected systems, and
reboot them all...
Thanks,
Paul
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: unexporting sys_call_table a good idea?
2003-04-01 5:03 Paul Clements (home)
@ 2003-04-01 5:18 ` Kasper Dupont
2003-04-01 5:57 ` Paul Clements (home)
0 siblings, 1 reply; 5+ messages in thread
From: Kasper Dupont @ 2003-04-01 5:18 UTC (permalink / raw)
To: Paul Clements (home); +Cc: linux-kernel
"Paul Clements (home)" wrote:
>
> Hi all,
>
> given the recent ptrace-related security bug, it sure would be nice to
> have sys_call_table exported, so that I could just disable ptrace
> altogether on affected systems (where no one is doing any debugging or
> devel work, anyway)... I realize that there are race conditions, etc.,
> with replacing syscalls, but could those not be solved?... as it is,
> rather than being able to simply compile an external module (which
> disables ptrace) and load it on affected systems, I am forced to
> recompile an entire kernel, install it on the affected systems, and
> reboot them all...
You could get the address of sys_call_table from the System.map file
and pass it as an argument to the module.
--
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: unexporting sys_call_table a good idea?
2003-04-01 5:18 ` Kasper Dupont
@ 2003-04-01 5:57 ` Paul Clements (home)
0 siblings, 0 replies; 5+ messages in thread
From: Paul Clements (home) @ 2003-04-01 5:57 UTC (permalink / raw)
To: Kasper Dupont; +Cc: linux-kernel
Kasper Dupont wrote:
> You could get the address of sys_call_table from the System.map file
> and pass it as an argument to the module.
Yes, that's a good solution. I tried it and it works.
Thanks...
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: unexporting sys_call_table a good idea?
[not found] <mailman.1049173681.3377.linux-kernel2news@redhat.com>
@ 2003-04-01 6:06 ` Pete Zaitcev
2003-04-01 6:53 ` Kasper Dupont
0 siblings, 1 reply; 5+ messages in thread
From: Pete Zaitcev @ 2003-04-01 6:06 UTC (permalink / raw)
To: Paul Clements (home); +Cc: linux-kernel
> [...] it is,
> rather than being able to simply compile an external module (which
> disables ptrace) and load it on affected systems, I am forced to
> recompile an entire kernel, install it on the affected systems, and
> reboot them all...
>
> Thanks,
> Paul
This is fallacy. How is exporting syscall table going to help you?
You still have to recompile entire kernel, install it on the
affected systems, and reboot them all, and only then you can
use your module. Wouldn't it be easier just to add a sysctl
which disables ptrace, instead?
-- Pete
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: unexporting sys_call_table a good idea?
2003-04-01 6:06 ` unexporting sys_call_table a good idea? Pete Zaitcev
@ 2003-04-01 6:53 ` Kasper Dupont
0 siblings, 0 replies; 5+ messages in thread
From: Kasper Dupont @ 2003-04-01 6:53 UTC (permalink / raw)
To: Pete Zaitcev; +Cc: Paul Clements (home), linux-kernel
Pete Zaitcev wrote:
>
> Wouldn't it be easier just to add a sysctl
> which disables ptrace, instead?
I have been considering that. I'd suggest this would be more than
just a boolean. I could imagine using the lowermost bit to decide
if ptrace is allowed for root, and the next bit to decide if
ptrace is allowed for other users. But do we really want this
sysctl? When do we expect the next root exploit in ptrace?
--
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-04-01 6:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1049173681.3377.linux-kernel2news@redhat.com>
2003-04-01 6:06 ` unexporting sys_call_table a good idea? Pete Zaitcev
2003-04-01 6:53 ` Kasper Dupont
2003-04-01 5:03 Paul Clements (home)
2003-04-01 5:18 ` Kasper Dupont
2003-04-01 5:57 ` Paul Clements (home)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.