Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30647525rwd; Thu, 6 Jul 2023 08:45:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4N0/9H4KEIxuj4IaxbLx73XOe6KO5peMHzB32JHj7jzg32fa8yq0t8HJoEyFPi2OLWQQL X-Received: by 2002:a05:6a20:1589:b0:130:2e61:3061 with SMTP id h9-20020a056a20158900b001302e613061mr1499813pzj.60.1688658313037; Thu, 06 Jul 2023 08:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688658313; cv=none; d=google.com; s=arc-20160816; b=mtJNKtmDRA2hqyQOs35eHyNcX2Zb6x+Yn+Z9NRg9RoGweexjMhtQV7Zqe2Y4H9hPoH Ik1sLuWUVjolB74jeGpFcWkXR6urAzC/tyiLzSMoiLKJCVHd7GgNr7hCifMiOgTf7vt2 yucfXc6F6nlN2I3DaG1dX7fCPQnvrBTjH497/l4VX7TPvIFMWlLvHw+RNdEEGrr4WPi1 2fSbkQqlfn4qHrc/JJlpTGqNZN7SRDmQToGpYQ4AyjSlMRwBwoZ+/3uJE1rC9W4Qiyj6 8FhzqXqLZGuHTeUWh5gB4kSTViTr0qkZDFNe3P0yqAbm76sS2D3sm4uqT8D99HfG/oXf OYgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=ZG+yQQJdnTV+AQwujFyahCM3o0U4xKQmURYi/IL3qyQ=; fh=mGzXqzmqHJIvCm1bnDSvr8NeSCDvk4HDppVj3X8uGd8=; b=eQbd741cbWPgS8efkPTWJZN55vDL6yqiDmFc0VSztd/qhrDOe/kQL9fdJaWxUrXoAM A/aDH1c+El02EUlC37r641YjOpP4TD8aSbiXARlVKUabfyz8fVerJzMAqVGMX4t4JLNN AW+5mfcWzvEipC4AQ96C2izaoUwnvOVVDpqzC0HV7Urogei4KBtUXphjFs9l/0FJC19F uVBuB+xu68mquPPC0zPblWYkEuqqxA0UvTDWNUkyFMz2RzvJE6o2JF9k1JaJUVZ+htFQ ENAM0QcxKeaiaH2UuoY4acIa8tWO2UDnSi+CRXDP0hS5iuonhojGD22eHZWJfotqI8b7 tDIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=XjKAD8TZ; dkim=neutral (no key) header.i=@suse.cz header.b=KnLY85Sm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k21-20020a63d855000000b0055b7171f869si1656479pgj.189.2023.07.06.08.44.55; Thu, 06 Jul 2023 08:45:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=XjKAD8TZ; dkim=neutral (no key) header.i=@suse.cz header.b=KnLY85Sm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233671AbjGFO5j (ORCPT + 99 others); Thu, 6 Jul 2023 10:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233681AbjGFO5h (ORCPT ); Thu, 6 Jul 2023 10:57:37 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E37C01FC1; Thu, 6 Jul 2023 07:57:30 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 959A521F0F; Thu, 6 Jul 2023 14:57:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1688655449; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZG+yQQJdnTV+AQwujFyahCM3o0U4xKQmURYi/IL3qyQ=; b=XjKAD8TZ0Q9XglDxur0hXsiR05GFB540k75NNjyO0hXyQTxSFiFxTneOXTUfG5Tr6NcqKV +lWMLppymZqm9xZFi9SVsx7i2ah4JFLxVFhw+TJjwMbDldXZPi58p8qotTwet5GHg1hsCY PQ8CjgoTUTOPlPUsGuxajkXPzizau1Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1688655449; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZG+yQQJdnTV+AQwujFyahCM3o0U4xKQmURYi/IL3qyQ=; b=KnLY85SmG704S4MFl2eaBzn7h/xYSUkzL9ONq3uzng9KE7i/ULtQoU3foVmvmDqviU2E2E M8Dy1gds+lY9p8BA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 84D11138FC; Thu, 6 Jul 2023 14:57:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id uENpIFnWpmTkBQAAMHmgww (envelope-from ); Thu, 06 Jul 2023 14:57:29 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id ECC3DA0707; Thu, 6 Jul 2023 16:57:28 +0200 (CEST) Date: Thu, 6 Jul 2023 16:57:28 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , Paul Moore , James Morris , "Serge E. Hallyn" , Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH v2 90/92] security: convert to ctime accessor functions Message-ID: <20230706145728.tbm667mjluyxesjn@quack3> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> <20230705190309.579783-88-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705190309.579783-88-jlayton@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 05-07-23 15:01:55, Jeff Layton wrote: > In later patches, we're going to change how the inode's ctime field is > used. Switch to using accessor functions instead of raw accesses of > inode->i_ctime. > > Acked-by: Paul Moore > Signed-off-by: Jeff Layton Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > security/inode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/security/inode.c b/security/inode.c > index 6c326939750d..3aa75fffa8c9 100644 > --- a/security/inode.c > +++ b/security/inode.c > @@ -145,7 +145,7 @@ static struct dentry *securityfs_create_dentry(const char *name, umode_t mode, > > inode->i_ino = get_next_ino(); > inode->i_mode = mode; > - inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); > + inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); > inode->i_private = data; > if (S_ISDIR(mode)) { > inode->i_op = &simple_dir_inode_operations; > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR