neurodroid / cryptonite

EncFS and TrueCrypt on Android
GNU General Public License v2.0
203 stars 49 forks source link

Add scripts for postMount and preUnmount #28

Open neurodroid opened 10 years ago

neurodroid commented 10 years ago

From m...@g4n.de on May 30, 2012 00:03:55

Hey there.

This is my use case:

I have only one reason for having different encrypted folders: Some apps don't allow to select other storage folers then their defaults (e.g. agit). So I don't need different encrypted folders for any security or amount/volume reason but only to make encrypted folders appear on different, very dedicated positions in the file system. A workaround would be having additional "mount -o bind" settings to make different encrypted folders inside the one EncFS encrypted directory appear "somewhere outside" of the EncFS encrypted directory.

So, feature request:

A nice thing would be having one script that gets executed right after EncFS has finished mounting and another script that gets execute right before EncFS starts unmounting.

Regards, Stephan.

Original issue: http://code.google.com/p/cryptonite/issues/detail?id=28

neurodroid commented 10 years ago

From christoph.schmidthieber@gmail.com on May 31, 2012 13:35:00

Yes, good idea. May have to wait a bit until I find some time though. Does "mount -o bind" work for you at all (see issue #23 )?

Status: Accepted
Owner: christoph.schmidthieber@gmail.com
Labels: -Type-Defect Type-Enhancement

neurodroid commented 10 years ago

From m...@g4n.de on May 31, 2012 13:51:06

Hey Christoph.

I'm on CM9 current nightly for Samsung Galaxy S2 i9100, "non-g european version".

I can confirm #23 to show "I/O error" on "df" command, but that doesn't affect bind mounting here. The "mount -o bind" just works. The "mount --bind" didn't, but that's propably related to the "mount" command.

Currently I'm using an app called "Directory Bind" from the XDA-Developer forum which gives me a click GUI for bind mounting. But the console/hand made "mount -o bind" did work right before I found that app.

I'm happy with the current situation ("Cryptonite" + "Directory Bind"). My use case for hook-scripts makes much more sense when using the mobile phone as USB Mass Storage for my computer, where mounting and unmounting of EncFS folders as well as mounting and unmounting those "bind" mounts has to be done several times. I simply try to avoid using my mobile phone as USB Mass Storage currently, so no need to hurry :).

Regards, Stephan.