[SOLVED] Partition Proxy: System Wide File Read/Write Redirection
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Partition Proxy: System Wide File Read/Write Redirection
I need to alter all data that any process tries to write to a specific partition. I also need to alter all data in a file that any process reads from said partition before it gets to the requesting process.
Is there a way to apply this based upon just one user account?
Is there a way to apply it system wide?
Is this possible through simple piping or other command line utilities?
I need to alter all data that any process tries to write to a specific partition. I also need to alter all data in a file that any process reads from said partition before it gets to the requesting process.
Interesting. What would be even more interesting would be to know what the exact problem is you are trying to solve. Examples? The more details the better. What application this is about? Are you trying to modify data in flight?
Quote:
Originally Posted by steampunk
Is this possible through simple piping or other command line utilities?
Interesting. What would be even more interesting would be to know what the exact problem is you are trying to solve. Examples? The more details the better. What application this is about? Are you trying to modify data in flight?
To put in a nutshell, I'm remastering a custom live distro with software for a security environment. The software is to run in ram, but when documents are saved, they must be piped to a AES encryption script, then written to disk. When reads occur, the reverse is done. I'd like the filesystem writes and reads to be interrupted at a low level so the programs don't need to be be concerned that this script even exists.
when documents are saved, they must be piped to a AES encryption script, then written to disk. When reads occur, the reverse is done.
Thanks for clarifying. So how do you envision encryption works? I mean if you allow the user to set the encryption key you could use PAM, FUSE, EncFS, pam_encfs and be done with it using OTS components?
Looks like encfs is a good way to go. It has a couple of graphical front ends, CyrptKeeper and TrueCrypt. I think I like TrueCrypt better because you can use a whole bunch of keys and I think you add salt by moving the mouse, whereas cryptKeeper is just a password.
They aren't too user friendly, but they'll work. I was hoping for something that less geeky types could use without too much puzzling through the interface and wizard.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.