lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOh0hwM+htm9K2MrRkH5tbS5dokGoqSiSwuPREMBYzeTV8Ucmg@mail.gmail.com>
Date:	Fri, 23 Dec 2011 18:20:04 +0530
From:	Gaurav Saxena <grvsaxena419@...il.com>
To:	Maxin B John <maxin.john@...il.com>
Cc:	Jiri Kosina <jkosina@...e.cz>, linux-kernel@...r.kernel.org
Subject: Re: Intercepting system calls

Hello Maxin,
Thanks a lot for your reply.

On Fri, Dec 23, 2011 at 5:59 PM, Maxin B John <maxin.john@...il.com> wrote:
> Hi,
>
> On Fri, Dec 23, 2011 at 1:59 PM, Gaurav Saxena <grvsaxena419@...il.com> wrote:
>> I found that Ubuntu does not have a kprobe enabled kernel. :( I don't
>> think I could use kprobes then.
>
> Probably you can find a solution using Systemtap.
>
> Have a look at this example:
> http://sourceware.org/systemtap/examples/general/badname.stp
>
> It just needs some modifications to meet your needs.
Thanks for your help , but I saw systemtap page and it says
prerequisites for using system tap are linux kernel with kprobes
enabled.
I think I would need to find another way of tapping it. :(
>
> HTH,
> Maxin B. John
>
>> On Fri, Dec 23, 2011 at 3:20 PM, Gaurav Saxena <grvsaxena419@...il.com> wrote:
>>> Hello Jiri
>>>
>>> On Fri, Dec 23, 2011 at 3:17 PM, Jiri Kosina <jkosina@...e.cz> wrote:
>>>> On Thu, 22 Dec 2011, Gaurav Saxena wrote:
>>>>
>>>>> I am writing an application for which I need to intercept some
>>>>> filesystem system calls eg. unlink. I need unlink to call my code
>>>>> before deleting abc so that I could probably prevent unlink . I would
>>>>> like to implement this in a kernel module instead of modifying kernel
>>>>> code itself. I would like to intercept system calls by replacing
>>>>> system calls but I have not been able to find any method of doing that
>>>>> in linux > 3.0. Please suggest some method of doing that.
>>>>
>>>> Write a kernel module that instruments sys_unlink() via krpobes. See
>>>> Documentation/kprobes.txt for details.
>>> Ok. I am looking at its details, will try that. But how could a probe
>>> prevent execution of a system call?
>>>>
>>>> --
>>>> Jiri Kosina
>>>> SUSE Labs
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks and Regards ,
>>> Gaurav
>>
>>
>>
>> --
>> Thanks and Regards ,
>> Gaurav
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@...r.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/



-- 
Thanks and Regards ,
Gaurav
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ