Hi Ruben,

Ruben Porras wrote:
>>Anyway, here's the steps to reproduce :
> 
> [...]
> 
>>So here is a possible security hole : if you want that somebody without
>>an encrypted home dir, shouldn't login, then he can ... aïe.
> 
> 
> No, that was not the intended behaviour, everybody should be able to
> login.

Ok, nice.

> 
>>I wrote the patch attached to partialy correct this behavior : at least
>>evrybody with or without an encrypted home dir will be able to log in.
> 
> 
> I think this is fixed in the new version uploaded yesterday to unstable.
> Can you check that?
>  
Looks like I agree with you :).


> 
> 
>>I take the time to correct some warnings (not all, but most of them)
>> too.
>>
>>Ok, back to the default conf file : why the maintainer let it's user
>>name in the file ??? (and not commented).
> 
> 
> why not? Anyway, the example has now a generic "user" and commented.

Just imagine a devil admin having a user with the same login as yourself
and using libpam-encfs ... people will don't understand why they cannot
login (due to the default behavior of encfs, which create the encryption
if no .encfs5 is found (but that's another problem)).

> 
> 
>>I suggest too, to put somewhere that the password for the encfs
>>NEED to be the SAME as the unix login ... that's a serious weakness in
>>my mind ... if somebody was able to crack the login password, it could
>>read the encrypted data's ... So in the same time, I suggest to put a
>>warning, to explain that you need to put the .encfs5 on another device
>>like an USBkey + automount it for reading this file (a link from
>>/home/.enc/encrypt/.encfs5 to /var/autofs/removable/uba/encfs5, could be
>>a start for a better security) NOTE : this can't work with actual code.
> 
> 
> This is not addressed in the last upload, neither the other fixes unless
> upstream has fixed them (which did with a couple of them). So, if you
> agree with me that the main issue is solved, we can downgrade this bug.

Yes, no problem with that.
Just to let you know, you will need to "fix" encfs to get this working
(at least the encfs in testing) since a lstat is done and not a stat (I
guess that's not a mistake, but I'm still trying to understand why using
lstat instead of stat ...). So perhaps some discussions with the encfs
maintainer will be necessary.

Regards, and thanks for your quick answer.

Benoît.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to