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

    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 ld.so(8) manual page.


    J. R. Okajima


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