Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp27226ybx; Tue, 29 Oct 2019 13:47:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzj4o2K61JbEEb5n1+bYIHlF1UDU8d0TVbU6q88QCO9bAFwcmwMDsi5sLD4O1nVe5Dsvgyk X-Received: by 2002:a50:ac14:: with SMTP id v20mr299639edc.291.1572382038526; Tue, 29 Oct 2019 13:47:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572382038; cv=none; d=google.com; s=arc-20160816; b=NmxE4uGxXuRC/gFfF0tRo6Fk/5MI3LboiLSviMB1mGRnL/VGcR31FQOzoiJeI7l3oh l7CI+i6pyZS2d0/2fFDWEYZPpsYodVayWTKKQ3v8T0wwO1CDdtgwoPghnan/6ZmmFo5x EFlc6/9oqNQLzVYxaS814EP15fTrCPy/XvnXjrYWGptVSW59KqJuMDFMu6ID/aNfcnvA OksE29+OWe4puchbEEBblvvNCAVIBy/Lveqndyfb9TzBShpfoxZo+hFlvIUuKqhfgNqu X2glJosYpIxjRJvqV6BGl/pkaBYX+clPvn+TIIVwig6NoShy0MmthCJobONUcg+CwRPz J14A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oTFWuz0Xf22B75B/I7+kiIiMH6pmcPiYXIEIit2eyxQ=; b=eLz7qZ8DWznsm0lT7CJ2VwUhb0ezh7iTTB6W9/FChQyKxehgKcoZe6wolOHT5Qct1G pykuymnRuSRzyCEduphOE65lOOpAWo1avZqdu3S4+5jgUIPVl0l43+2UNHyPzSX6cBRm qCbhJkBhuW3GkK0US/or4oYy3o4AE1mDy8Yt01mSaMD+gqYhKTYn9g78HmBm6EpuR9dm BAcxrTSW35bSu+14ZWghaQuK82qaqhdmz73lc8/JJMwutv66yi02ds5UsmTcHvDU0zw/ o3+d7G6Kv3BaUOTAWaYKMkJUXviF6ANsLTR0s9af3+ekFnKCxM1n4xe4adWR264LhG7o Vlsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fqLabC+4; 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 n9si8799511ejk.158.2019.10.29.13.46.53; Tue, 29 Oct 2019 13:47:18 -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=fqLabC+4; 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 S1728212AbfJ2Un5 (ORCPT + 99 others); Tue, 29 Oct 2019 16:43:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:34752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728156AbfJ2Un5 (ORCPT ); Tue, 29 Oct 2019 16:43:57 -0400 Received: from ebiggers-linuxstation.mtv.corp.google.com (unknown [104.132.1.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6F32721835; Tue, 29 Oct 2019 20:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572381836; bh=p5iqeRBG0wAn8vG31RO8K0J2sdKd+zlwDuiiVCe/arU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fqLabC+4M1549VLoHu+fT+YMZrTGGCI6h26q23IVXUV+l623EaOFPGHWTbPJw6rZQ z6+Hb6lOhwnAuiq9iVMCCKczLZk3npUaZaH86ZnpoxrQvfeVOOuYLC9FnrJvJznCMQ fH9S1BHEqrrcJqKGPANaSpjGiCl63Sl7zkWvb3wE= From: Eric Biggers To: linux-fscrypt@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-api@vger.kernel.org, David Howells , Theodore Ts'o , Jaegeuk Kim , Victor Hsieh Subject: [PATCH 4/4] docs: fs-verity: mention statx() support Date: Tue, 29 Oct 2019 13:41:41 -0700 Message-Id: <20191029204141.145309-5-ebiggers@kernel.org> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191029204141.145309-1-ebiggers@kernel.org> References: <20191029204141.145309-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Eric Biggers Document that the statx() system call can now be used to check whether a file is a verity file. Signed-off-by: Eric Biggers --- Documentation/filesystems/fsverity.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/filesystems/fsverity.rst b/Documentation/filesystems/fsverity.rst index 42a0b6dd9e0b68..3355377a24398d 100644 --- a/Documentation/filesystems/fsverity.rst +++ b/Documentation/filesystems/fsverity.rst @@ -226,6 +226,14 @@ To do so, check for FS_VERITY_FL (0x00100000) in the returned flags. The verity flag is not settable via FS_IOC_SETFLAGS. You must use FS_IOC_ENABLE_VERITY instead, since parameters must be provided. +statx +----- + +Since Linux v5.5, the statx() system call sets STATX_ATTR_VERITY if +the file has fs-verity enabled. This can perform better than +FS_IOC_GETFLAGS and FS_IOC_MEASURE_VERITY because it doesn't require +opening the file, and opening verity files can be expensive. + Accessing verity files ====================== -- 2.24.0.rc1.363.gb1bccd3e3d-goog