mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Hajime Inoue <hinoue@ccsl.carleton.ca>
Cc: linux-kernel@vger.kernel.org
Subject: Re: System call interposition/unprotecting the table
Date: Tue, 14 Aug 2007 18:48:16 +0100	[thread overview]
Message-ID: <20070814184816.12a8a94c@the-village.bc.nu> (raw)
In-Reply-To: <46C1E5F5.9050702@ccsl.carleton.ca>

> Just protecting the table does not stop rootkits.  A highly referenced
> phrack article explains how to bypass the table.  

But most people are not capable of fllowing that article - or they
wouldn't be asking here whatever their intention.

> Why isn't the rest of the kernel code protected along with the table?

Thats in progress actually and hopefully then in the hypervisor case
implementing irrevocably read-only pages.

> Finally, system call interposition is used in several interesting
> systems, most notably, systrace.  It's unclear to me how one would
> implement something like systrace without modifying the table or doing
> other rootkit-like antics.

Always wrongly. You can't be sure the table format will not change, you
can't reliably restore the table and its virtually impossible to do any
kind of trace reliably this way as you end up with two copies of the data
from user space which may vary (and leads to bad problems - see BSD
recently).


  reply	other threads:[~2007-08-14 17:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-13 22:05 hinoue
2007-08-13 23:09 ` Alan Cox
2007-08-14  5:12   ` Avi Kivity
2007-08-14 11:34     ` Alan Cox
2007-08-14 14:22     ` James Morris
2007-08-14 17:27   ` Hajime Inoue
2007-08-14 17:48     ` Alan Cox [this message]
2007-08-14 17:57     ` Arjan van de Ven
2007-08-14 19:50     ` Andi Kleen
2007-08-14 21:09       ` Jan Engelhardt
2007-08-14 22:42       ` Alan Cox
2007-08-14 22:48         ` Andi Kleen
2007-08-17 14:19           ` Dave Jones
2007-08-18 10:37             ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070814184816.12a8a94c@the-village.bc.nu \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=hinoue@ccsl.carleton.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®