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)
commitf34e87f58dabc31eb69f61cf4a79e951d4176743
tree3f7c4f599185777025667f0af650ee86d065ede2
parentbb50c63244687706e11c9b636a5ad3090cd783ac
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: d475a507457b ("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