I would like to make a piece of code which is able to know when another application is trying to open or write a file, and also able to prevent this access. Is it possible ? How ?
For example, for a zip file containing a video, Opening the file with VLC would lead my tool to prevent VLC to open the file, unzip the archive in a temporary folder and re-open the video with vlc.
I'm not interested on how bad this idea is, it's more about personal curiosity and technical challenge. And it's not about zip and VLC, it's my own file container.
I'm new to the Linux Kernel.