Re: System call interposition/unprotecting the table

From: Alan Cox
Date: Tue Aug 14 2007 - 13:41:28 EST


> 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).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/