[Ecryptfs-devel] [PATCH] Set correct file permission when suid

2007-12-14 Thread Alon Bar-Lev
Currently, files created in user's home with root ownership. This should fix this. Signed-off-by: Alon Bar-Lev <[EMAIL PROTECTED]> --- diff --git a/src/libecryptfs/key_management.c b/src/libecryptfs/key_management.c index acedc26..2c88357 100644 --- a/src/libecryptfs/key_management.c +++ b/src/

[Ecryptfs-devel] [PATCH] Recursive create directory for openssl key module

2007-12-14 Thread Alon Bar-Lev
The suid sets the ~/.ecryptfs to owner root, so user don't have access to this directory. Anyway... It is safer to recursive create the directories as the filename already contain required directory, so if users specify differnet directory the ~/.ecryptfs is not created. Signed-off-by: Alon Ba