Warning - don't use eCryptFS
Hi all,
FYI I recently had some fairly serious problems with poky and the "encrypted home directory" function in Ubuntu, which uses eCryptFS. Problems I experienced included:
* pseudo-native failing to write an sstate package ("file name too long" - apparently eCryptFS is limited to ~140 characters due to design limitations)
* ncurses-native failing at do_install (some kind of interference with libtool that caused it to write an invalid path to the libncurses.la file, I didn't track down the exact cause as it went away when I stopped using eCryptFS. Might be indirectly related to the name length limitation.)
Scott, could you please add a warning to the documentation not to use eCryptFS with poky? In particular, it should not be used to store TMPDIR and SSTATE_DIR.
I'll follow up soon with a patch that will do a sanity check on the file name length limit - this will catch any other weird file systems that might cause these kinds of issues.
Cheers,
Paul
Quoted 3 lines · Paul Eggleton
Hi all,
FYI I recently had some fairly serious problems with poky and the "encrypted home directory" function in Ubuntu, which uses eCryptFS. Problems I experienced included:
On a similar note, I've had plenty of experience with ocfs2 and it not working with git. Some limited debugging a few months ago showed it to be missing support for some extended file system attributes. Very opaque build errors will result if you have this as your host filesystem.
The reason that this is significant is that the kernel is build directly out of a git repository, and during the clone and checkout, it typically fails under ocfs2.
I haven't observed this recently, but this email reminded me that I should at least float the warning.
Cheers,
Bruce
Quoted 16 lines
* pseudo-native failing to write an sstate package ("file name too long" - apparently eCryptFS is limited to ~140 characters due to design limitations)
* ncurses-native failing at
do_install(some kind of interference with libtool that caused it to write an invalid path to the libncurses.la file, I didn't track down the exact cause as it went away when I stopped using eCryptFS. Might be indirectly related to the name length limitation.)Scott, could you please add a warning to the documentation not to use eCryptFS with poky? In particular, it should not be used to store TMPDIR and
SSTATE_DIR.I'll follow up soon with a patch that will do a sanity check on the file name length limit - this will catch any other weird file systems that might cause these kinds of issues.
Cheers,
Paul
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 5 lines · Paul Eggleton
Hi all,
FYI I recently had some fairly serious problems with poky and the "encrypted home directory" function in Ubuntu, which uses eCryptFS. Problems I experienced included:
I've also experienced git tree corruption when using eCryptFS for my home directory. It's definitely on my "avoid like the plague" list. I had no such issues while using the /etc/crypttab mechanism (I forget what the right name is for that). But Ubuntu broke that with Upstart (at least for me).
Signature · 2 lines
Darren Hart Yocto Linux Kernel