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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
> 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/ |
|
|||
|
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] |