Return-Path: Received: from b.ns.miles-group.at ([95.130.255.144]:44723 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753453AbcLST4M (ORCPT ); Mon, 19 Dec 2016 14:56:12 -0500 Subject: Re: [PATCH] ubifs: allow encryption ioctls in compat mode To: Eric Biggers , linux-mtd@lists.infradead.org References: <1482174768-104224-1-git-send-email-ebiggers3@gmail.com> Cc: Artem Bityutskiy , Adrian Hunter , linux-fsdevel@vger.kernel.org, Eric Biggers From: Richard Weinberger Message-ID: <6632424c-ab12-3923-e27f-12d24ca3168c@nod.at> Date: Mon, 19 Dec 2016 20:56:08 +0100 MIME-Version: 1.0 In-Reply-To: <1482174768-104224-1-git-send-email-ebiggers3@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 19.12.2016 20:12, Eric Biggers wrote: > From: Eric Biggers > > The ubifs encryption ioctls did not work when called by a 32-bit program > on a 64-bit kernel. Since 'struct fscrypt_policy' is not affected by > the word size, ubifs just needs to allow these ioctls through, like what > ext4 and f2fs do. > > Signed-off-by: Eric Biggers > --- > fs/ubifs/ioctl.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/fs/ubifs/ioctl.c b/fs/ubifs/ioctl.c > index 78d7136..da519ba 100644 > --- a/fs/ubifs/ioctl.c > +++ b/fs/ubifs/ioctl.c > @@ -217,6 +217,9 @@ long ubifs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) > case FS_IOC32_SETFLAGS: > cmd = FS_IOC_SETFLAGS; > break; > + case FS_IOC_SET_ENCRYPTION_POLICY: > + case FS_IOC_GET_ENCRYPTION_POLICY: > + break; Whoops, since I tested most of the time on an ARM board, this was unnoticed. :-D Thanks, //richard