From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f195.google.com ([209.85.192.195]:34477 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751033AbdBDVod (ORCPT ); Sat, 4 Feb 2017 16:44:33 -0500 Date: Sat, 4 Feb 2017 13:44:28 -0800 From: Eric Biggers To: Theodore Ts'o Cc: Ext4 Developers List , Linux Filesystem Development List , jaegeuk@kernel.org, richard@nod.at, ebiggers@google.com Subject: Re: [PATCH] ext4: don't allow encrypted operations without keys Message-ID: <20170204214428.GC5621@zzz> References: <20161228034812.ikoat5x3e7ucnac7@thunk.org> <20161228052252.10314-1-tytso@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161228052252.10314-1-tytso@mit.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Dec 28, 2016 at 12:22:52AM -0500, Theodore Ts'o wrote: > While we allow deletes without the key, the following should not be > permitted: > > # cd /vdc/encrypted-dir-without-key > # ls -l > total 4 > -rw-r--r-- 1 root root 0 Dec 27 22:35 6,LKNRJsp209FbXoSvJWzB > -rw-r--r-- 1 root root 286 Dec 27 22:35 uRJ5vJh9gE7vcomYMqTAyD > # mv uRJ5vJh9gE7vcomYMqTAyD 6,LKNRJsp209FbXoSvJWzB > > Signed-off-by: Theodore Ts'o Hi Ted, this commit shows up twice in the ext4 tree, as 173b8439e1ba3 and a7ede371cb821, but the second actually adds the check two *more* times to ext4_cross_rename(), such that there are now a total of three checks in that function, all the same. Do you want to revert the second, unnecessary, commit? Thanks, Eric