{"id":33,"date":"2015-04-19T13:23:19","date_gmt":"2015-04-19T11:23:19","guid":{"rendered":"https:\/\/blog.unetresgrossebite.com\/?p=33"},"modified":"2015-04-28T01:28:12","modified_gmt":"2015-04-27T23:28:12","slug":"ecryptfs","status":"publish","type":"post","link":"https:\/\/blog.unetresgrossebite.com\/?p=33","title":{"rendered":"eCryptfs"},"content":{"rendered":"<p>You may be familiar with eCryptfs, a disk encryption software, especially known for being shipped with Ubuntu default installations, being the &#8216;Encrypted Home&#8217; underlying solution.<\/p>\n<p>From what I gathered of empirical experiences, I would say eCryptfs, AKA Enterprise Cryptographic Filesystem, should be avoided in both enterprise and personal use cases.<\/p>\n<p>My first surprise was while crawling a site for its record: creating a file per author, I ended up with more than 5000 files in a single directory. At which point, your dmesg should show something like several &#8216;<em>Valid eCryptfs header not found in file header region or xattr region, inode XXX<\/em>&#8216;, then a fiew &#8216;<em>Watchdog[..]: segfault at 0 ip $addr1 sp $addr2 error 6 in libcontent.so[$addr3]<\/em>&#8216;<\/p>\n<p>The second surprise, a few days later, while recovering rbd from my ceph cluster. Storing all parts from a disk into a same directory, again, I ended up with folders holding several thousands of file, and my dmesg going mad.<br \/>\nYou would notice moving your folder outside of your ecryptfs directory will fix the problem.<\/p>\n<p>Of course, most users won&#8217;t recover their ceph nor crawl a site for its complete database. Although, configuring Thunderbird\/IceDove, you may end up caching enough mails from your imap\/pop server to reach the limits I did.<\/p>\n<p>This is not my first experience with cryptographic solutions.<br \/>\nOnce upon a time, TrueCrypt was offering a very exhaustive toolkit, managing from devices to files &#8211; so much so, my end-of-studies project was bout forking TrueCrypt, adding features the maintainer did not wanted to see in its product (BootTruster).<br \/>\nOn today&#8217;s Linux systems, a more classic way to do it would be to use Luks (Linux Unified Key Setup), based on a standardized device-mapper: dm-crypt.<\/p>\n<p>Anyway: next time you&#8217;re asked about encrypting your home file system, think twice about what solution you&#8217;re going to use. Then, chose Luks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may be familiar with eCryptfs, a disk encryption software, especially known for being shipped with Ubuntu default installations, being the &#8216;Encrypted Home&#8217; underlying solution. From what I gathered of empirical experiences, I would say eCryptfs, AKA Enterprise Cryptographic Filesystem, should be avoided in both enterprise and personal use cases. My first surprise was while [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts\/33"}],"collection":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33"}],"version-history":[{"count":1,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":34,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions\/34"}],"wp:attachment":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}