LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-17-2018, 06:40 PM   #1
wzis
LQ Newbie
 
Registered: Dec 2013
Posts: 17

Rep: Reputation: 0
Question about fanotify behavior: if 2 or more processes monitor the same file


For example, if I want to block some process to access a directory /path/to/dir, I used following marks:
FAN_ACCESS_PERM | FAN_EVENT_ON_CHILD | FAN_OPEN_PERM
But my question is if the attacker wants to access files under that dir, and created a program to use fanotify to monitor the same dir, and runs that program to grant permission to his attacking program, it seems his fanotify program could do that even when the right program wants to prohibit the attacking program to access the files under the protected dir.
Is my understanding about the fanotify not right? Or anyone knows the right way to block root process to access a dir?
 
  


Reply



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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to monitor some processes alexandra12 Linux - Newbie 5 05-01-2011 11:02 PM
Odd monitor behavior drummerdan Slackware 1 05-17-2007 09:04 PM
Odd Gaim Behavior (processes, freezing) Poetics Linux - Software 1 05-24-2005 06:32 AM
very weird dual-monitor behavior perryub Linux - Hardware 3 09-01-2004 05:05 PM
Runlevel 3 Monitor Behavior? Crashed_Again Linux - General 1 02-16-2003 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration