kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: geraint0923@gmail.com (Geraint Yang)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to hook the system call?
Date: Mon, 28 Nov 2011 10:12:26 +0800	[thread overview]
Message-ID: <CAAdM-RUJ736HDW+Mvb4dE13zSLPs0zd=UL1NUQvkB+XvEtrwFA@mail.gmail.com> (raw)
In-Reply-To: <CAFLxGvx0q+SZBa0ZmBuSKrQzG7T8sskDSQ4H9mpCon7rFjxmdQ@mail.gmail.com>

Thanks for advice !
I am using the LSM framework even though it need recompiling the kernel.
But I will also give a try to the kernelroll module.
Modifying sys_call_table is easier to get error but it can get more freedom
than LSM framework which could only hook on limit hooking points.



On Mon, Nov 28, 2011 at 9:12 AM, richard -rw- weinberger <
richard.weinberger@gmail.com> wrote:

> On Sun, Nov 27, 2011 at 11:17 PM, Jonathan Neusch?fer
> <j.neuschaefer@gmx.net> wrote:
> > On Wed, Nov 23, 2011 at 04:40:14PM +0800, Geraint Yang wrote:
> >> Hello everyone,
> >>
> >> I am going to hook a system call like 'read' or 'send' by modifying the
> >> sys_call_table, but it seems that the sys_call_table is in read only
> page,
> >> how can I set modify the sys_call_table ? Or if there any method that I
> can
> >> use to hook a system call in module without modify the kernel source?
>
> Please keep in mind that hooking a system call is very bad and error prone.
>
> --
> Thanks,
> //richard
>



-- 
Geraint Yang
Tsinghua University Department of Computer Science and Technology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111128/65e8ac05/attachment.html 

  reply	other threads:[~2011-11-28  2:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23  8:40 How to hook the system call? Geraint Yang
2011-11-23  9:22 ` Alexandru Juncu
2011-11-23 10:10   ` Daniel Baluta
2011-11-23 10:27     ` Alexandru Juncu
2011-11-23 12:02       ` rohan puri
2011-11-23 16:50         ` Geraint Yang
2011-11-23 16:59           ` Alexandru Juncu
2011-11-23 18:05             ` Geraint Yang
2011-11-23 18:20               ` Nuno Martins
2011-11-24  4:04               ` rohan puri
2011-11-27 22:17 ` Jonathan Neuschäfer
2011-11-28  1:12   ` richard -rw- weinberger
2011-11-28  2:12     ` Geraint Yang [this message]
2011-11-28  9:48     ` Jonathan Neuschäfer

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='CAAdM-RUJ736HDW+Mvb4dE13zSLPs0zd=UL1NUQvkB+XvEtrwFA@mail.gmail.com' \
    --to=geraint0923@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).