All of lore.kernel.org
 help / color / mirror / Atom feed
From: christophe.hauser@supelec.fr (Christophe Hauser)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Hooking exec system call
Date: Thu, 22 Sep 2011 18:50:01 +1000	[thread overview]
Message-ID: <20110922085001.GL21550@localhost> (raw)
In-Reply-To: <4E7AF090.6000402@gmail.com>


On Thu, Sep 22, 2011 at 01:53:44PM +0530, Abhijit Pawar wrote:
> hi list,
> Is there any way to hook the exec system call on Linux box apart from 
> replacing the call in System Call table?
> 
> Regards,
> Abhijit Pawar

 
Hi,

you can do that with LSM (CONFIG_SECURITY) using the bprm_set_creds hook (see
include/linux/security.h).

-- 
Christophe

  reply	other threads:[~2011-09-22  8:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-22  8:23 Hooking exec system call Abhijit Pawar
2011-09-22  8:50 ` Christophe Hauser [this message]
2011-09-22  9:44 ` rohan puri
2011-09-23  7:31   ` Rajat Sharma
2011-09-23  8:30     ` Abhijit Pawar
2011-09-23  8:34       ` rohan puri
2011-09-23  9:13         ` Abhijit Pawar
2011-09-23  9:41           ` rohan puri
2011-09-26  6:32             ` Abhijit Pawar
2011-09-26  6:56               ` rohan puri
2011-09-26  6:59                 ` Abhijit Pawar
2011-09-26  7:27                   ` rohan puri
2011-09-26  7:30                     ` Abhijit Pawar
2011-09-26  7:32                       ` rohan puri
2011-09-22 16:57 ` Mulyadi Santosa

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=20110922085001.GL21550@localhost \
    --to=christophe.hauser@supelec.fr \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.