jianlinwei / cryptonite

Automatically exported from code.google.com/p/cryptonite
GNU General Public License v2.0
0 stars 0 forks source link

Add scripts for postMount and preUnmount #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by m...@g4n.de on 29 May 2012 at 11:03

GoogleCodeExporter commented 9 years ago
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)?

Original comment by christoph.schmidthieber@gmail.com on 31 May 2012 at 8:35

GoogleCodeExporter commented 9 years ago
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.

Original comment by m...@g4n.de on 31 May 2012 at 8:51

GoogleCodeExporter commented 9 years ago
This issue has moved to https://github.com/neurodroid/cryptonite/issues/28

Original comment by christoph.schmidthieber@gmail.com on 28 Aug 2014 at 3:55