All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rajat Sharma <fs.rajat@gmail.com>
To: rohan puri <rohan.puri15@gmail.com>
Cc: Gaurav Saxena <grvsaxena419@gmail.com>, linux-fsdevel@vger.kernel.org
Subject: Re: Intercepting system calls
Date: Thu, 29 Dec 2011 18:42:59 +0530	[thread overview]
Message-ID: <CAAYFAvqJmwwkq1RP9U7atef3JK6OFu26qG9pBRQTpn3UuDqNdw@mail.gmail.com> (raw)
In-Reply-To: <CALJfu6NrF2fjsWUi4gnV9X6AN3rcecL=6=j9ZZADaRGwz3mECw@mail.gmail.com>

You could probably trim down ecryptfs and customize it as per your
need. It has advantage of being in mainline. Just remove encryption
part of it. I wish if Linux provided a framework to do the same.

-Rajat

On Thu, Dec 29, 2011 at 6:37 PM, rohan puri <rohan.puri15@gmail.com> wrote:
>
>
> On Thu, Dec 29, 2011 at 6:02 PM, Gaurav Saxena <grvsaxena419@gmail.com>
> wrote:
>>
>> On 12/29/11, Rajat Sharma <fs.rajat@gmail.com> wrote:
>> > well ecryptfs which ships with mainline linux kernel is based upon
>> > stackable approach (wrapfs), do you call it hack? :)
>> Ok. I will try to use wrapfs but it seems its quite old and inactive
>> too. I would have to write a new filesystem extending wrapfs it seems.
>> I would work upon it and ask for help when I get problems. :)
>> Thanks a lot for helping me.
>> >
>> > On Thu, Dec 29, 2011 at 5:36 PM, Gaurav Saxena <grvsaxena419@gmail.com>
>> > wrote:
>> >> On 12/29/11, Rajat Sharma <fs.rajat@gmail.com> wrote:
>> >>> Well kprobe is:
>> >>>
>> >>> 1. meant to instrument debugging while developing
>> >>> 2. Is configured with kernel configuration parameters which you can
>> >>> not guarantee to be configured on deployment site.
>> >>> 3. slower as it works with debugger break point instruction and single
>> >>> stepping mode.
>> >>> 4. probing into an instruction and altering behavior might not scale
>> >>> across kernel version and interface changes.
>> >>>
>> >>> But yes, you can technically capture any kernel instruction's virtual
>> >>> address and probe into it. Building solution on top of such
>> >>> instrumentation -- HACK!! :)
>> >> Ok Thanks. I see it will be real slow then as its only a debugging
>> >> mechanism, I also found a hack which uses a kprobe based approach and
>> >> adds a jump code to beginning of system calls. Yes I agree with you ,
>> >> I don't want hack which needs to be changed with kernel versions or
>> >> depends on configuration of kernel.
>> >> I will give a try to wrapfs today. :) Is it too a hack ?
>> >>>
>> >>> Did you try looking for LSM as well?
>> >> LSM projects like SELinux ? Actually they need kernel rebuild/
>> >> reinstall thus I would try not to go for such options.
>> >>>
>> >>> -Rajat
>> >>>
>> >>
>> >> --
>> >> Thanks and Regards ,
>> >> Gaurav
>> >
>>
>>
>> --
>> Thanks and Regards ,
>> Gaurav
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-fsdevel"
>> in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
> Just to let you know, you can make use of
> http://gauravnaigaonkar.web.officelive.com/Documents/hw2.txt as a reference
> on how to write a stackable file system. This is for linux kernel version
> 2.6.26
>
> Regards,
> Rohan Puri
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2011-12-29 13:13 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-22 16:07 Intercepting system calls Gaurav Saxena
2011-12-22 16:42 ` richard -rw- weinberger
2011-12-22 16:59   ` Gaurav Saxena
2011-12-22 17:05     ` richard -rw- weinberger
2011-12-22 17:16       ` Gaurav Saxena
2011-12-22 17:32         ` richard -rw- weinberger
2011-12-22 17:37           ` Gaurav Saxena
2011-12-22 17:52     ` John Stoffel
2011-12-23  2:22       ` Gaurav Saxena
2011-12-23 14:38         ` John Stoffel
2011-12-23 17:03           ` Gaurav Saxena
2011-12-28 12:56             ` Wojciech Zygmunt Porczyk
2011-12-29  6:38               ` Gaurav Saxena
2011-12-23 14:50       ` Alan Cox
2011-12-23 17:07         ` Gaurav Saxena
2011-12-22 19:03     ` Wakko Warner
2011-12-23  2:25       ` Gaurav Saxena
2011-12-23  9:45       ` Jiri Kosina
2011-12-23 15:10         ` Wakko Warner
2011-12-23  7:25 ` J. R. Okajima
2011-12-23  9:08   ` Gaurav Saxena
2011-12-23  9:16     ` richard -rw- weinberger
2011-12-23  9:22       ` Gaurav Saxena
2011-12-23  9:26         ` richard -rw- weinberger
2011-12-23  9:37           ` Gaurav Saxena
2011-12-23  9:47 ` Jiri Kosina
2011-12-23  9:50   ` Gaurav Saxena
2011-12-23 11:59     ` Gaurav Saxena
2011-12-23 12:29       ` Maxin B John
2011-12-23 12:50         ` Gaurav Saxena
2011-12-23 13:00           ` richard -rw- weinberger
2011-12-24  9:09 ` Gaurav Saxena
2011-12-26  5:53   ` Rajat Sharma
2011-12-28  5:59     ` Gaurav Saxena
2011-12-28 13:44       ` Rajat Sharma
2011-12-29  6:42         ` Gaurav Saxena
2011-12-29  8:49           ` Rajat Sharma
2011-12-29 10:23             ` Gaurav Saxena
2011-12-29 11:11               ` Rajat Sharma
2011-12-29 12:06                 ` Gaurav Saxena
2011-12-29 12:25                   ` Rajat Sharma
2011-12-29 12:32                     ` Gaurav Saxena
     [not found]                       ` <CALJfu6NrF2fjsWUi4gnV9X6AN3rcecL=6=j9ZZADaRGwz3mECw@mail.gmail.com>
2011-12-29 13:12                         ` Rajat Sharma [this message]
2011-12-29 14:03                           ` Gaurav Saxena
2011-12-29 14:32                             ` Gaurav Saxena
2012-01-20  7:38                           ` Gaurav Saxena
2011-12-29 14:01                         ` Gaurav Saxena
  -- strict thread matches above, loose matches on Subject: below --
2010-02-04 19:00 Oleg Kutkov
2010-02-04 19:26 ` Bryan Donlan
     [not found]   ` <5e9821061002042140le7ba356s48e535c9d8b637ec@mail.gmail.com>
2010-02-05  7:20     ` Bryan Donlan
2004-12-21  4:22 selvakumar nagendran
2004-12-21  4:28 ` Lee Revell
2004-12-21 13:51 ` Steven Rostedt

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=CAAYFAvqJmwwkq1RP9U7atef3JK6OFu26qG9pBRQTpn3UuDqNdw@mail.gmail.com \
    --to=fs.rajat@gmail.com \
    --cc=grvsaxena419@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=rohan.puri15@gmail.com \
    /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.