Results 1 to 3 of 3

Thread: About File Protection

  1. #1

    About File Protection

    Hi all,

    I have difficulty in Real-time File Protection under Linux.

    I consult some documents aout "FAM" and "inotify", which are used for Watching File Changing.But they can only get File Changing Event in a directory, can not get it in the subdirectory--I mean I have to monitor each subdirectory myself, and stop monitoring them if they have been deleted.

    Um,I save all directories in a "tree" Data Structure, e.g. if a dirctory P that has subdirectories C1,C2 has been deleted, I stop monitoring P, C1 and C2, then if they three have been restored successfully, I start monitoring them again.

    The problem is that it's not stable if files change continually, I don't know how to solve it.

    Will you please make a suggestion for me?

  2. #2

    Re: About File Protection

    Hello iclinux,

    I have not used FAM to the extent you wish to use it, but I see the issue you are having. What do you mean by when you say that it is not stable? Do you mean that it crashes, or that it just doesn't begin monitoring C1 and C2 after they have been recreated?

    Maybe this will help?

    Last thing, in the future, please do not make multiple posts around the forums, your message will not be missed.


  3. #3

    Re: About File Protection

    hello babbing,

    Thanks for your help.

    It doesn't crash, and it begins monitoring C1 and C2 after they have been recreated. It does work if file changing is not frequent, but unluckily, it may fail if create and/or remove directories
    frequently, I think it may be related to stopping and starting monitoring directories continually.

    I'm puzzled.

    Ok, I won't make multiple posts around the forums again

Similar Threads

  1. GCC Stack Smashing Protection
    By peter in forum Tutorials
    Replies: 0
    Last Post: 11-24-2008, 05:48 AM
  2. MBR protection
    By Fatal Error in forum Linux - General Topics
    Replies: 13
    Last Post: 07-08-2005, 09:13 PM
  3. Protection Checklist
    By Ishtar in forum Windows - General Topics
    Replies: 0
    Last Post: 02-18-2005, 12:46 PM
  4. CD Cpyright Protection already broken
    By mojo jojo in forum General Chat
    Replies: 3
    Last Post: 10-09-2003, 04:27 PM
  5. Linux Virus Protection
    By rooster in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 03-18-2002, 04:22 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts