Skip to contentSkip to conversation

Patch "ubifs: Don't encrypt special files on creation" has been added to the 4.12-stable tree

PATCH [email protected] 1 participant 1 message Jul 25, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

ubifs: Don't encrypt special files on creation

to the 4.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
ubifs-don-t-encrypt-special-files-on-creation.patch
and it can be found in the queue-4.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From f34e87f58dabc31eb69f61cf4a79e951d4176743 Mon Sep 17 00:00:00 2001

From: David Gstir <[email protected]>
Date: Wed, 17 May 2017 13:36:16 +0200
Subject: ubifs: Don't encrypt special files on creation

From: David Gstir <[email protected]>

commit f34e87f58dabc31eb69f61cf4a79e951d4176743 upstream.

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")
---
 fs/ubifs/dir.c |    1 +
 1 file changed, 1 insertion(+)
fs/ubifs/dir.c +1 -0
@@ -143,6 +143,7 @@ struct inode *ubifs_new_inode(struct ubi
 	case S_IFBLK:
 	case S_IFCHR:
 		inode->i_op  = &ubifs_file_inode_operations;
+		encrypted = false;
 		break;
 	default:
 		BUG();

Patches currently in stable-queue which might be from [email protected] are

queue-4.12/ubifs-don-t-encrypt-special-files-on-creation.patch