Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3359347imm; Fri, 24 Aug 2018 15:46:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbUUendcitVBJj0i0aigsF5OMwT4UxtE8TRRdQcPFnP5dlEahFS1KOftA8WlCO84ENIjOQ7 X-Received: by 2002:a62:d2c4:: with SMTP id c187-v6mr3830520pfg.8.1535150805136; Fri, 24 Aug 2018 15:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535150805; cv=none; d=google.com; s=arc-20160816; b=AFGugEHfclAb5HXIFwoyx9MXDn/bmMFSkrcVSbNyVGxQwzUNoKB+oFUzJBKr9Rf9MC BcbEfLm+iOnKlVhR03hMWOewcwzv3QZ9eR/n9NsOJ7MD3LN1dsn4FTjc1tMKBZIAbbdC kBhDd9jNKL8Wz6Fq9fg1NSYjFbtfdP3qiAXW8cXICLb5xkQere87/nGtJ3ocPE2Honfe ageUW3R873BODsCrKQJc6kVkDq0hez30fSoVvqIkYSQ3NEdn7+NDthAe+3x+nSQWw6MS aJLsKi/qlhWi9JByHA8EI+tO07jfs4jpu0Vd8mV167WoytxnUUrCkCUVUS/927YDJW66 ilJA== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=MW8Mo5WYV/jtB27uNo0lWYcPFClWZRNLFXHgrmRymlQ=; b=mxe6KCQqtilBEu3gMxGbudp45b0dIc8LdRxlahDKboLHh3ycv4SlGLunK4bJMXWZKQ Fsff6tGRh8AajsdrR+jn+7gkWVqklBiS9r7FRblVLFscEAUr+RprmlL4AkNi2WRHeuOZ 7QbuD8wBPpb9T2PbumBxJ4pKrT0kuAA2QC5oGis5ql1wzO9DaLJZLzqNbt4KdMKDAZFd /99WfEKmIiB0ySSRGNtM7JBccLUVoUoBqzaCXvn9YiZE4kCYoppnmvYkLujCfP1b+fLw 4V4ZYZnTv2JUbgN9VBr3K6jGUHAzJvdFLZ/CRbJwZU6KZOUbzPXyk6jOAog0t8VIJaoV r+QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=WUX7zhmU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6-v6si8184992pgu.676.2018.08.24.15.46.29; Fri, 24 Aug 2018 15:46:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=WUX7zhmU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727402AbeHYCWD (ORCPT + 99 others); Fri, 24 Aug 2018 22:22:03 -0400 Received: from imap.thunk.org ([74.207.234.97]:43548 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726564AbeHYCWD (ORCPT ); Fri, 24 Aug 2018 22:22:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MW8Mo5WYV/jtB27uNo0lWYcPFClWZRNLFXHgrmRymlQ=; b=WUX7zhmUQaow2VmP74JlgUqwn7 jg6ziRYU7ErCPdtQ4By5qasGjzmfKXl6n2uknAMGx8Gi1NQHZap8jjvxQ71akcLM4ytmLNniw/IZz CN4EmXIkMkAs1fXbM3xfSTBa6Jkqx8FLFcRtyECA8QcCTOHVu1P6iEEwUQs95DAhY7qk=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1ftKpS-0005i4-8i; Fri, 24 Aug 2018 22:45:18 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 1A50B7A57A9; Fri, 24 Aug 2018 18:45:17 -0400 (EDT) Date: Fri, 24 Aug 2018 18:45:17 -0400 From: "Theodore Y. Ts'o" To: Colin Walters Cc: Eric Biggers , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-integrity@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-kernel@vger.kernel.org, Mimi Zohar , Dmitry Kasatkin , Michael Halcrow , Victor Hsieh Subject: Re: [RFC PATCH 01/10] fs-verity: add setup code, UAPI, and Kconfig Message-ID: <20180824224517.GF15262@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Colin Walters , Eric Biggers , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-integrity@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-kernel@vger.kernel.org, Mimi Zohar , Dmitry Kasatkin , Michael Halcrow , Victor Hsieh References: <20180824161642.1144-1-ebiggers@kernel.org> <20180824161642.1144-2-ebiggers@kernel.org> <1535132549.2855027.1485213752.129E3334@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1535132549.2855027.1485213752.129E3334@webmail.messagingengine.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 24, 2018 at 01:42:29PM -0400, Colin Walters wrote: > > While I'm not too familiar with the vfs, as far as I can > tell from inspection of Linus' git master is that pretty much any change (timestamp, hardlinks) ends up > calling notify_change() which calls the fs-specific one, and in > the verity case basically denies everything, right? That's not correct. The verity case only denies truncate, because changing the data of the file would break the Merkle tree checksums. The metadata of the file is is not made immutable. So a verity-protected file can be deleted, renamed, can have hard links, and the timestamps can be set via utimes(), etc. Cheers, - Ted