Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt

Pull fscrypt fix from Eric Biggers:
"Fix a regression where new files weren't using inline encryption when
they should be"

* tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt:
fscrypt: fix inline encryption not used on new files

+1 -1
+1 -1
fs/crypto/inline_crypt.c
··· 74 74 int i; 75 75 76 76 /* The file must need contents encryption, not filenames encryption */ 77 - if (!fscrypt_needs_contents_encryption(inode)) 77 + if (!S_ISREG(inode->i_mode)) 78 78 return 0; 79 79 80 80 /* The crypto mode must have a blk-crypto counterpart */