diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-04-30 09:53:15 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 17:29:38 +0200 |
commit | 00cd5c37afd5f431ac186dd131705048c0a11fdb (patch) | |
tree | d5412f6c720e2cee11ac66783bb45e6bd78f4a1d /drivers/char | |
parent | ptrace: ptrace_attach: use send_sig_info() instead force_sig_specific() (diff) | |
download | linux-00cd5c37afd5f431ac186dd131705048c0a11fdb.tar.xz linux-00cd5c37afd5f431ac186dd131705048c0a11fdb.zip |
ptrace: permit ptracing of /sbin/init
Afaics, currently there are no kernel problems with ptracing init, it can't
lose SIGNAL_UNKILLABLE flag and be killed/stopped by accident.
The ability to strace/debug init can be very useful if you try to figure out
why it does not work as expected.
However, admin should know what he does, "gdb /sbin/init 1" stops init, it
can't reap orphaned zombies or take care of /etc/inittab until continued. It
is even possible to crash init (and thus the whole system) if you wish,
ptracer has full control.
See also the long discussion: http://marc.info/?t=120628018600001
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Roland McGrath <roland@redhat.com>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions