[lkml]   [2011]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Intercepting system calls

    Hello Gaurav,

    Gaurav Saxena:
    > I am writing an application for which I need to intercept some
    > filesystem system calls eg. unlink. I need unlink to call my code

    For kernel space, CONFIG_KPROBES may help you.
    See Documentation/kprobes.txt in detail.

    For user space, $LD_PRELOAD may help you.
    You will need to develop your shared object library which contains
    your_unlink() and replaces the original unlink().
    See manual page.

    J. R. Okajima

     \ /
      Last update: 2011-12-23 08:39    [W:0.024 / U:0.584 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site