Re: How to enable CONFIG_EXT4_ENCRYPTION

Dai Xiang
2017-08-08T06:04:22Z

On Mon, Aug 07, 2017 at 10:50:13PM -0700, Eric Biggers wrote:
> On Tue, Aug 08, 2017 at 09:27:38AM +0800, Dai Xiang wrote:
> > >
> > > Actually, this is one of the tests in the "encrypt" group, which format the
> > > scratch device with "-O encrypt". So I believe the printed message is correct.
> > > Are you 100% sure that CONFIG_EXT4_ENCRYPTION is enabled in your kernel config
> > > and that you are running the correct kernel?
> >
> > I use v4.13-rc3 kernerl, and i find this info refer to https://wiki.archlinux.org/index.php/ext4#Using_file-based_encryption:
> >
> > Ext4 forbids encrypting the root (/) directory and will produce an error on kernel 4.13 and later
> >
> > Does it impact?
> >
>
> No, the tests do not try to encrypt the root directory. Can you please double
> check that the kernel you're testing actually has CONFIG_EXT4_ENCRYPTION
> enabled?

oh, I see, i miss them, but i have a new question:

I have set CONFIG_FS_ENCRYPTION and CONFIG_EXT4_ENCRYPTION both y, but
after build the config do not include them, and what make me confused
is that there is no failure log about them.

Did i miss some dependence kconfigs or conflict kconfigs?

>
> Eric