Find the answer to your Linux question:
Results 1 to 9 of 9
hello all, I am a newbi for linux programming. now I need to write a program, it would be best to be an LSM, which can distinguish or identify a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    cfh
    cfh is offline
    Just Joined!
    Join Date
    Sep 2005
    Posts
    11

    program to distinguish between copy move pipe


    hello all,
    I am a newbi for linux programming.
    now I need to write a program, it would be best to be an LSM, which can distinguish or identify a copying file process, moving file process, and pipe a file content to another file or a new file process. Is this able to be done? if so, please give me the advice of what to begin with.
    Thank you~~~

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Is this homework? And what does LSM in this context stand for?

  3. #3
    cfh
    cfh is offline
    Just Joined!
    Join Date
    Sep 2005
    Posts
    11
    Quote Originally Posted by lakerdonald
    Is this homework? And what does LSM in this context stand for?
    thank you for the reply.
    this is something that I need to discuss and personal interest......
    LSM here stands for Linux Security Module.
    It does not have to be LSM program... it can just be a C program, or just the idea of how this possible to be programmed.

  4. #4
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044

    Re: program to distinguish between copy move pipe

    Quote Originally Posted by cfh
    hello all,
    I am a newbi for linux programming.
    now I need to write a program, it would be best to be an LSM, which can distinguish or identify a copying file process, moving file process, and pipe a file content to another file or a new file process. Is this able to be done? if so, please give me the advice of what to begin with.
    Thank you~~~
    Do you mean you want to write a program that monitors the system and detects if a copy or move program is being? Or does your program do the copy or move itself?

  5. #5
    cfh
    cfh is offline
    Just Joined!
    Join Date
    Sep 2005
    Posts
    11

    Re: program to distinguish between copy move pipe

    I mean to write a program that monitors the system and detects if there is copying or moving....
    Thanks.

  6. #6
    Linux User
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    401

    ???

    There is copying/moving of what, where and why... ????

    However, I don't think this can be pratically usefull for security...

    And how it could be so fast to monitor all I/O on a box? Do you want to limit applications to some operations?

    I've heard about systrace, wich can block system calls... but I don't know if it runs on Linux... maybe...
    When using Windows, have you ever told "Ehi... do your business?"
    Linux user #396597 (http://counter.li.org)

  7. #7
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    You can just use LD_PRELOAD, and modify the libraries which control copying and moving to report back to you.

  8. #8
    cfh
    cfh is offline
    Just Joined!
    Join Date
    Sep 2005
    Posts
    11

    Re: ???

    Quote Originally Posted by burnit
    There is copying/moving of what, where and why... ????

    However, I don't think this can be pratically usefull for security...

    And how it could be so fast to monitor all I/O on a box? Do you want to limit applications to some operations?

    I've heard about systrace, wich can block system calls... but I don't know if it runs on Linux... maybe...
    Copying or moving a text file... just try to detect the actions...
    I will take a look of the systrace.
    Thank you.

  9. #9
    cfh
    cfh is offline
    Just Joined!
    Join Date
    Sep 2005
    Posts
    11
    Quote Originally Posted by lakerdonald
    You can just use LD_PRELOAD, and modify the libraries which control copying and moving to report back to you.
    I will start to look into the LD_PRELOAD.
    Thank you.

Posting Permissions

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