Find the answer to your Linux question:
Results 1 to 5 of 5
Which is the simple and safe method to execute a user side application from kernel side?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Posts
    5

    Executing user side application


    Which is the simple and safe method to execute a user side application from kernel side?

  2. #2
    Linux User fernape's Avatar
    Join Date
    Dec 2005
    Location
    Holland
    Posts
    301
    You shouldn't do that.

    Can you explain what is exactly your problem?

    Best Regards

  3. #3
    Linux Newbie burntfuse's Avatar
    Join Date
    Nov 2006
    Location
    Laurel, MD
    Posts
    158
    Well, it does run init, but that's all.
    I have sold my soul to the penguin

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Sep 2005
    Posts
    5
    Thanks for the replies.

    My idea is to monitor file open/close in a particular directory. For this I'll be trapping VFS sys_open and sys_close and if the path matches, I need to call a user application to log it.

  6. #5
    Linux User fernape's Avatar
    Join Date
    Dec 2005
    Location
    Holland
    Posts
    301
    Ok, there is a daemon that do that but sorry, I don't remember the name:

    However, I think your design is not totally correct:
    Your app. should call kernel services and not the contrary. In my opinion, you could use kprobes to make some hooks (clean hooks, not changing the kernel sources) and then put the information you need in /proc or other pseudo-filesystem. Then, your app. can read data from it.

    Best Regards

Posting Permissions

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