Encrypting UBIFS Filesystem

Daniel Golle daniel at makrotopia.org
Fri Aug 7 00:28:25 PDT 2015


Hi!


On Fri, Aug 07, 2015 at 02:25:44AM -0300, Ezequiel Garcia wrote:
> Shawn,
> 
> On 6 August 2015 at 09:02, shawn rose <shawn at ecoventsystems.com> wrote:
> >
> > Anyone have experience, or know of people/company/contractors, that
> > have Encrypted UBIFS before?  If so, I'd like to be introduced.  I
> > have a IoT device which is currently using UBIFS and like to encrypt
> > the entire system.  I am looking for the lessons learned from those
> > who have done this before.
> >
> 
> You can use a regular block filesystem on top of UBI using the block
> interface (drivers/mtd/ubi/block.c), and then use standard encrypt stuff
> for block devices (dm-crypt for instance).
> 
> However, this has nothing to do with UBIFS, so maybe it's not an option for you.
> 
> If the filesystem you want to encrypt is read-only, then you may consider
> the UBI block option.

ecryptfs works fine on top of UBIFS.
Another option is having an encrypted disk-image as a file in UBIFS and
use cryptsetup with a loopback block device. However, this will most
likely not perform very well and I must admit that I never tried that.


Cheers


Daniel



More information about the linux-mtd mailing list