]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: Don't encrypt special files on creation
authorDavid Gstir <david@sigma-star.at>
Wed, 17 May 2017 11:36:16 +0000 (13:36 +0200)
committerRichard Weinberger <richard@nod.at>
Fri, 14 Jul 2017 20:49:05 +0000 (22:49 +0200)
commit878cf0e2ab7aa2805869513946c6ca1060f9f5c9
tree3f7c4f599185777025667f0af650ee86d065ede2
parent8019802521460ceaf3d6d8d6ef75cd2fc0f3644f
ubifs: Don't encrypt special files on creation

When a new inode is created, we check if the containing folder has a encryption
policy set and inherit that. This should however only be done for regular
files, links and subdirectories. Not for sockes fifos etc.

Fixes: 329de44dfd26 ("ubifs: Add skeleton for fscrypto")
Cc: stable@vger.kernel.org
Signed-off-by: David Gstir <david@sigma-star.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/dir.c