mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chris Wright <chrisw@osdl.org>
To: Bruno Castro da Silva <sysware@portoweb.com.br>
Cc: linux-kernel@vger.kernel.org
Subject: Re: syscall hook
Date: Tue, 23 Sep 2003 16:24:10 -0700	[thread overview]
Message-ID: <20030923162410.B15254@osdlab.pdx.osdl.net> (raw)
In-Reply-To: <3f70d6f9.cec.16345@portoweb.com.br>; from sysware@portoweb.com.br on Tue, Sep 23, 2003 at 08:27:53PM -0300

* Bruno Castro da Silva (sysware@portoweb.com.br) wrote:
> I need to put a hook on a syscall so I can monitor the usage
> of sockets. I'm trying to do so without having to recompile
> the kernel (eg by using modules). Can anyone give me a hint
> on how to achieve this?

You can't (and don't want to) hook syscalls in any current kernels.  Check
out the socket level hooks in the LSM framework.

thanks,
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net

  reply	other threads:[~2003-09-23 23:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-23 23:27 Bruno Castro da Silva
2003-09-23 23:24 ` Chris Wright [this message]
2003-09-24  1:01 ` Richard J Moore
2003-09-24  7:11 ` Muli Ben-Yehuda
  -- strict thread matches above, loose matches on Subject: below --
2003-09-23 23:26 Bruno Castro da Silva

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=20030923162410.B15254@osdlab.pdx.osdl.net \
    --to=chrisw@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sysware@portoweb.com.br \
    /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®