lkml.org 
[lkml]   [2008]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] Add basic sanity checks to the syscall execution patch

First such checkers already exist -- they are called root kit checkers.
There are various around.
Usually operate from user space. You could run them in a cron job.

> well at least in the case of Linux we have a fairly good tally of what
> kernel code is supposed to be executable at some given moment after
> bootup, and can lock that list down permanently until the next reboot,
> and give the list to the checker to verify every now and then? Such a

Doing it in a hypervisor implicitely like Alan proposed would seem much
stronger and also somewhat cleaner than doing it delayed.

> verification pass certainly wouldnt be cheap though: all kernel
> pagetables have to be scanned and verified, plus all known code (a few
> megabytes typically), and the key CPU data structures.

The issue is that a lot of non key data structures all over the memory
have function pointers (or pointers to function pointers) too.
So if you protect syscall table they are just going to patch some dentry
instead. Still if it's reasonable clean it might be still useful to
raise the bar a bit, but I'm not sure a checker qualifies for that.

-Andi


\
 
 \ /
  Last update: 2008-09-05 19:25    [W:0.068 / U:9.212 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site