-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Top level filenames not encrypted #214
Comments
This is expected if any process still has the directory (Note that with v1 policies which you're using, |
I closed the file manager.
I can still see the stuff in
|
Unlocked and re-locked
|
Yes, it's necessary to run For v1 policies it's also needed to run |
BTW, off-topic... I view it as worth noting that in comparison with ecryptfs, fscrypt cannot back up locked files, while ecryptfs can. In my opinion this is a substantial benefit of ecryptfs - am I missing something? |
You're not really missing anything. eCryptfs uses filesystem stacking to implement encryption on top of encryption-unaware filesystems. That approach has a lot of performance and correctness disadvantages, which have made the main eCryptfs users switch to fscrypt or dm-crypt. However, it does have the advantage that backing up locked files works "naturally". It would be possible (though somewhat difficult) to add kernel APIs that allow backup of locked fscrypt-encrypted files. But not too many people have been asking for this, since unlocked files can be backed up instead. So it's not currently a priority. |
Filed #215 to track a possible usability improvement when locking v1-encrypted directories. |
I'm migrating from an older version of Ubuntu to 22.04 LTS and I'm trying to migrate away from eCryptfs for home directory encryption to fscrypt and I'm experiencing this same issue. Is there a way to force the home directory to auto-lock when the user logs out? |
Here's what I did:
Then I went to Ubuntu's file manager and copied a directory named
ums
intot1
.After locking
t1
,ums
is still visible as the file name:But filenames in
ums
are encrypted:Now I can create files in t1 but not read them:
Version info:
Hope this helps!
The text was updated successfully, but these errors were encountered: