C Intercepting file system request

All,
I'm considering writing a small application that will decrypt files on the fly but unsure what approach/library to take and would like some advise on this.

Basically the concept is that I have a directory with a series of config files in it. These will be encrypted with some algorithm which has yet to be picked.

When the file system makes a request for any file in a specified location I'd like to intercept the request, perform some logic, if the logic gets through all checks then it will decrypt the file and return it to the process requesting it.

What would be the best approach here?

tyia!
 
I'm considering writing a small application that will decrypt files on the fly but unsure what approach/library to take and would like some advise on this.
FUSE is the first thing that comes to mind. Although admittedly, I am not a programmer. But looking at the code of sysutils/fusefs-encfs may be helpful.
 
Back
Top