Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30651646rwd; Thu, 6 Jul 2023 08:48:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlHBHOBb6z3UnSECYJRZ/RLbJak/IjU8yQd8Mk9Zk62X1jFqKnEXcAcmEWV2EK/H1IVTxEBg X-Received: by 2002:a17:903:1246:b0:1b8:6cac:ffe8 with SMTP id u6-20020a170903124600b001b86cacffe8mr2559945plh.51.1688658515772; Thu, 06 Jul 2023 08:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688658515; cv=none; d=google.com; s=arc-20160816; b=0sUn76xMw/xUIzRF03o9ILki+lh9mFcA8Tt3TNjoSTjDCvzDg4J7jvfCWOtvROAkKd 4MUqtDUfVOUyVd+Xy5drD78XvmogKLgP/4lZ+a23E41Q5J4tsJeGGqmJoV1zDhKkhAPR rEtERA4d9lOrwy5MAsLXFiUmMGGmNhuC7rkhEg9KiJ5FDzl0NyXtJ4dZO1c4YEbjks6K VYK2KZwDi7+4+gYknP6oA13J+pOoPrboqXsXS0b17poH9aXosa8ZQJBtXex27EkNXav8 LjrvtN1JPE+dw35gW2pBnQSgT5QpsQsy2zzFywpXlLeuAp6m20LGOp73WAq5IQj2/muz tJgA== 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=iQy4r3jBeJ1GrUGNs17Ib9ABW1DTjrqpCUtgNF657N8=; fh=TY9pmfT8De50Uq3IJQTB9QwqXwmw0cNNoeKGZviV/OU=; b=jZ6QH8tp+iTiAldCt+zIzBli0jOJP2aDHz5HQoKcXxdnZ44bRQYaRecfG8S5+fR0Rl ioRJR+Sy+tiqJLNMBGpIcJQnM51FsGZezJJ7QhRFZo1VOdYukRRVTRU89z2lgtumI2dh eGckbW+tvIQ8Mi54UGrF88QcymipkNGvtfKlYmkJPtzV0nfPGvAG9MB12qezkKLn3j35 887sL3gSLK/WyEoxrIUga27jMWxYpxtBYAyh+BJbYPaZRINkL6WIHVxxEKL3Hpfp7jU4 tbAZzyAQlL9d7el/yQ4M1jAqhIumuYlkmPdMsJMEeuyxRRUuEDDSl6hAhaYtCrb4EI50 3sxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=hbvDgJ9k; dkim=neutral (no key) header.i=@suse.cz; 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 y2-20020a17090264c200b001b8a39c6537si1395742pli.503.2023.07.06.08.48.22; Thu, 06 Jul 2023 08:48:35 -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=hbvDgJ9k; dkim=neutral (no key) header.i=@suse.cz; 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 S233686AbjGFO6T (ORCPT + 99 others); Thu, 6 Jul 2023 10:58:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232479AbjGFO5y (ORCPT ); Thu, 6 Jul 2023 10:57:54 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E171BF9; Thu, 6 Jul 2023 07:57:50 -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 EBE02211CE; Thu, 6 Jul 2023 14:57:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1688655468; 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=iQy4r3jBeJ1GrUGNs17Ib9ABW1DTjrqpCUtgNF657N8=; b=hbvDgJ9k2D2Wi488tTmSp6AiIH5C7387dN+FFa37omvU6n6Wllm3JjFSUUIcj85xNWVYu8 4uw+58dmK828uqi5dHWA/NEHOK2VgOrsIvAs3KHhZigo+VsQqn9GB0lNY+Is+YrWQYgXT2 ZollszzcHjyXYpRw9I+7pvgBH2IwucY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1688655468; 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=iQy4r3jBeJ1GrUGNs17Ib9ABW1DTjrqpCUtgNF657N8=; b=JR83XE7n8Drd25aq3i3IdZWpBXZn5NPqwfXy1Eze6lRBqCZPLLGf+RlNzKq3KHN7C4+bUV Qj3Qai12hqwV5FCw== 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 D88DF138FC; Thu, 6 Jul 2023 14:57:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lRvJNGzWpmQOBgAAMHmgww (envelope-from ); Thu, 06 Jul 2023 14:57:48 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 6BF24A0707; Thu, 6 Jul 2023 16:57:48 +0200 (CEST) Date: Thu, 6 Jul 2023 16:57:48 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , Paul Moore , Stephen Smalley , Eric Paris , Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, selinux@vger.kernel.org Subject: Re: [PATCH v2 91/92] selinux: convert to ctime accessor functions Message-ID: <20230706145748.p6ncrphpbxt2hlaz@quack3> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> <20230705190309.579783-89-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705190309.579783-89-jlayton@kernel.org> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL,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:56, 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/selinux/selinuxfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c > index bad1f6b685fd..9dafb6ff110d 100644 > --- a/security/selinux/selinuxfs.c > +++ b/security/selinux/selinuxfs.c > @@ -1197,7 +1197,7 @@ static struct inode *sel_make_inode(struct super_block *sb, int mode) > > if (ret) { > ret->i_mode = mode; > - ret->i_atime = ret->i_mtime = ret->i_ctime = current_time(ret); > + ret->i_atime = ret->i_mtime = inode_set_ctime_current(ret); > } > return ret; > } > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR