hooking disk accesses

This is a discussion on hooking disk accesses within the Linux Security forums, part of the System Security and Security Related category; Hi! I have to develop an application that will hook disk access requests to the operating system. It includes a ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-31-2005
sraposo
 
Posts: n/a
Default hooking disk accesses

Hi!

I have to develop an application that will hook disk access requests to the
operating system. It includes a request to a remote disk. Sínce I am a real
beginner on Linux environment programming, I'd to ask you some clue on how
start it.

Thanks.


Reply With Quote
  #2 (permalink)  
Old 03-31-2005
prg
 
Posts: n/a
Default Re: hooking disk accesses


sraposo wrote:
> Hi!
>
> I have to develop an application that will hook disk access requests

to the
> operating system. It includes a request to a remote disk. Sínce I am

a real
> beginner on Linux environment programming, I'd to ask you some clue

on how
> start it.
>
> Thanks.


FAM - File Alteration Monitor. Worth looking into? Comes with most
(all?) newer distros.

http://oss.sgi.com/projects/fam/faq.html
http://www.php.net/manual/en/ref.fam.php

hth,
prg

Reply With Quote
  #3 (permalink)  
Old 03-31-2005
Colin McKinnon
 
Posts: n/a
Default Re: hooking disk accesses

prg spilled the following:

>
> sraposo wrote:
>> Hi!
>>
>> I have to develop an application that will hook disk access requests

> to the
>> operating system. It includes a request to a remote disk. Sínce I am

> a real
>> beginner on Linux environment programming, I'd to ask you some clue

> on how
>> start it.
>>
>> Thanks.

>
> FAM - File Alteration Monitor. Worth looking into? Comes with most
> (all?) newer distros.
>
> http://oss.sgi.com/projects/fam/faq.html
> http://www.php.net/manual/en/ref.fam.php



there's also a thingy that does something along these lines - I came across
it when reading up on ClamAV...(quick google)....http://www.dazuko.org/

HTH

C.

Reply With Quote
  #4 (permalink)  
Old 04-01-2005
Jem Berkes
 
Posts: n/a
Default Re: hooking disk accesses

> I have to develop an application that will hook disk access requests
> to the operating system. It includes a request to a remote disk. Sínce
> I am a real beginner on Linux environment programming, I'd to ask you
> some clue on how start it.


There is a nice technique you can use but it's rather advanced. You might
want to search google for "hooking syscall". This isn't specific to disks
but rather, one can hook the system's read() and write() system calls.

That will let you see disk I/O however it might be a messy way to
accomplish what you want.

--
Jem Berkes
Software design for Windows and Linux/Unix-like systems
http://www.sysdesign.ca/
Reply With Quote
  #5 (permalink)  
Old 04-03-2005
Walter Mautner
 
Posts: n/a
Default Re: hooking disk accesses

sraposo wrote:

> Hi!
>
> I have to develop an application that will hook disk access requests to
> the operating system. It includes a request to a remote disk. Sínce I am a
> real beginner on Linux environment programming, I'd to ask you some clue
> on how start it.
>

There is dazuko, famuko (famd) and libtrash. You don't need to reinvent the
wheel :)
--
Longhorn error#4711: TCPA / NGSCP VIOLATION: Microsoft optical mouse
detected penguin patterns on mousepad. Partition scan in progress
*to*remove*offending*incompatible*products.**React ivate*MS*software.
Linux woodpecker.homnet.at 2.6.11-mm4[LinuxCounter#295241,ICQ#4918962]
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:23 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0