Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp785496ybd; Sat, 22 Jun 2019 15:12:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqye7QlW6dX72oDDF0j0OebOJPw9J/c+puf6L4AxYAzH0giAEh+r4FjGMw8l51zXMnZ/IuA/ X-Received: by 2002:a63:2310:: with SMTP id j16mr893827pgj.238.1561241572922; Sat, 22 Jun 2019 15:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561241572; cv=none; d=google.com; s=arc-20160816; b=JmyyITUehME4yaVR5f7HVRWZubJ17oYLDHSxqiYwwfIpu22mxhDf//aiuT0vs1BVlH MDDmf+GmkJBXR/q/M9/dmfb6noItUx697Jd2M0y6gvglcj1P6AEH7Iv89pZOTo9ybD4M YsGZCEsZgsQKSqbjkE56LgQjKjwCH0FAb9QuVb0hhLhremeZVH47qo/7PzcrdABTU73F 3ZZdDPtrtWH1wLUU8dAfg/HoqSUuLhw9QiWFfp1Hp1SktDxl0NK6IJX/9mVlqm8N+dNZ Um4KqomNvZ+GZX+7fxFCVHjU4TtkNG90KERBFx0YNakO8hDj8mHzGLzghr3pmcgR8kGJ XxCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1FTOqtF7Qt5reGj9DEKao2Hsw1IOJBZncyW1LRZQ6HA=; b=jFjhlP57QlYY6bEaguGw8n5Eky7ht+rbrPaApycC08bUESe9X3BBPvA8cHVW5OrW41 mzmIh8tCfIf4HLkpfxDgpkA+CFdOwYLYe+xhnRYnUP6UBYoOcQb1UOJ5evZFHtR2i9Mt 5cVkd/HIwbhZv1dBMUld7oX7MGKFdoDFhzt6OZxxjddasmKX7nHAXLq2rhFmkyL2tWL0 JqR2ZPt4qSoavnoyqFlTccDGS9B9vuAHuSgb7K8NrZHbo+P1IHooF3kaaf+iOvy2kZh3 PWzqyMf90jKg04W+7nsJWtXeSGxO3aodojBbTNPMUjPc9/yxRQ6+WkWp+TLeARFwPVgT 6Uow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="M/P6vgSd"; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si5760440pgq.563.2019.06.22.15.12.36; Sat, 22 Jun 2019 15:12:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="M/P6vgSd"; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726422AbfFVWLx (ORCPT + 99 others); Sat, 22 Jun 2019 18:11:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:47582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbfFVWLx (ORCPT ); Sat, 22 Jun 2019 18:11:53 -0400 Received: from localhost (unknown [104.132.1.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D9FA320862; Sat, 22 Jun 2019 22:11:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561241511; bh=pWoXCpB1qxcWe85YQz2OZPYh2L7dHQZAU4vlFFwBHyo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M/P6vgSdRCBAMVbjQGvKFCW1dEY9AZV09wQ53yTq0DU408NCkXFSAICQV6jn1+MTG fX0UFSeVoTMJO67DFqUgnyjLkmU2YZuH1bOoOyIBdiE+WDzG4OALjrPOL8YO/JCnct gcGg+0Aua0/NdNr7VBu6WeJliataKEavETqinIn0= Date: Sat, 22 Jun 2019 15:11:51 -0700 From: Jaegeuk Kim To: Eric Biggers Cc: linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-integrity@vger.kernel.org, "Theodore Y . Ts'o" , Victor Hsieh , Chandan Rajendra , Dave Chinner , Christoph Hellwig , "Darrick J . Wong" , Linus Torvalds Subject: Re: [PATCH v5 04/16] fs: uapi: define verity bit for FS_IOC_GETFLAGS Message-ID: <20190622221151.GD19686@jaegeuk-macbookpro.roam.corp.google.com> References: <20190620205043.64350-1-ebiggers@kernel.org> <20190620205043.64350-5-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190620205043.64350-5-ebiggers@kernel.org> User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 06/20, Eric Biggers wrote: > From: Eric Biggers > > Add FS_VERITY_FL to the flags for FS_IOC_GETFLAGS, so that applications > can easily determine whether a file is a verity file at the same time as > they're checking other file flags. This flag will be gettable only; > FS_IOC_SETFLAGS won't allow setting it, since an ioctl must be used > instead to provide more parameters. > > This flag matches the on-disk bit that was already allocated for ext4. > > Reviewed-by: Theodore Ts'o Reviewed-by: Jaegeuk Kim > Signed-off-by: Eric Biggers > --- > include/uapi/linux/fs.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h > index 59c71fa8c553a3..df261b7e0587ed 100644 > --- a/include/uapi/linux/fs.h > +++ b/include/uapi/linux/fs.h > @@ -306,6 +306,7 @@ struct fscrypt_key { > #define FS_TOPDIR_FL 0x00020000 /* Top of directory hierarchies*/ > #define FS_HUGE_FILE_FL 0x00040000 /* Reserved for ext4 */ > #define FS_EXTENT_FL 0x00080000 /* Extents */ > +#define FS_VERITY_FL 0x00100000 /* Verity protected inode */ > #define FS_EA_INODE_FL 0x00200000 /* Inode used for large EA */ > #define FS_EOFBLOCKS_FL 0x00400000 /* Reserved for ext4 */ > #define FS_NOCOW_FL 0x00800000 /* Do not cow file */ > -- > 2.22.0.410.gd8fdbe21b5-goog