Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9515347rwd; Wed, 21 Jun 2023 08:21:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kDQYa4F0aZzAa8R0Vkp986uVSwEqiXgPZW0TH5vl9BkES/OtYPaHwcQcHlJAgTv/mkOL2 X-Received: by 2002:a17:902:f688:b0:1ae:50cc:455 with SMTP id l8-20020a170902f68800b001ae50cc0455mr12298830plg.39.1687360881086; Wed, 21 Jun 2023 08:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687360881; cv=none; d=google.com; s=arc-20160816; b=oksfAGhXX+oAlM8sBvahsTkmdTVkvjS4HkSplPJQsW+35K+OQNUY0iqtkuJXUXGmQJ XOvlH8FqJu625JAZYgqBPSUKOg+hAO3c2cvKy2XRxx+jcjhLyvIz9JuJmS9GeQX5mh2Z mish2TJCL8yjln3cW/3cD/ylvkSRnqfC1Sdm84lex5rLbi0S7ptht7bYAH3qcXgXwLwW m/0uVYayI2QES47W1Xa8UaizAo0ItM4rLGHP3PyoDJpPDKMQzIYqaEU6fA1M2gEVPU+K TzyR1YbmzIaLmOTLztKjhuVzbE4XO5Zrv/oIyZoG16dD5NXLIuiy8+5zM2qq3l4KkCI4 lVlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Z+YZEv6FY4Jgo9TWlE2tyRRVgcjsn2iEiaKxjlzI4yE=; b=EoT/Q4gq0btgLE3pZXvb5yHbtPKGB+If6Mo/Qh0cJXBWww8s9ZqgxLs03ZDwv2Rply +PHNE5qocAuchcb+6x055TiXB5akGorR6GupKbhfwAcom5pFSXTK15+2TDjX7nU+/GIc 6uakpBDbvCSsf8SvsGwj2HZrLrdxySxhZSe/RVYymdIfFDOkYYKdHa/FYXmIbVBOknys AgBMOPL8+sBHF4Zwg2Vs/fv+hibhWENXJSFK6gTAbISZ7sqSnl87kIZccM3KYx7Fw0dy g+5+wSkE0KA7BSNqj/Xh7uKmty7QcASia5/ia9ywJNHkX/Bz6DfnQPEM+U7F5AsL5Ozq 7CnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c4lhUOxj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kj13-20020a17090306cd00b001b54ff18ecfsi4037505plb.386.2023.06.21.08.21.08; Wed, 21 Jun 2023 08:21:21 -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=@kernel.org header.s=k20201202 header.b=c4lhUOxj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232900AbjFUO4N (ORCPT + 99 others); Wed, 21 Jun 2023 10:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233007AbjFUOx6 (ORCPT ); Wed, 21 Jun 2023 10:53:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C7192680; Wed, 21 Jun 2023 07:50:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2BCA7615C4; Wed, 21 Jun 2023 14:49:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB368C433C8; Wed, 21 Jun 2023 14:49:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687358991; bh=BiaJ5jpIOWljnOkZ7WeAt5Z0pozvTMv5IciOmpdTiC0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c4lhUOxjgWZaORXhjiT0ymA4hLJhfJWZkvH4rxtLAEw7wqxOhE+e+W3lY1BYmWIyj 2jtRj5IXXQgdB9uKvZhTlnGTXeqntH/1XA90X3V2bMQpa039ZaimPFCprbd/mz194p YBA3uCEd/FPISjPRQe2UUSYuk0djBw0An5PbAZbzJXgRmMa3oaJw2xHR5E0+Wo6KJ3 LVuBck367fZw1ghK9JP2djxIM9pa8YsjoF8TB8PZCSpV1ORztGvWnk0v/FDAGm2nwJ PfpM9TYiqZxJo3oetNq4LH/DF07+/+eq6CTONLIHMwHuo20iJK5cU9lBzReGCRWhww rDpdl89Zqmj1w== From: Jeff Layton To: Christian Brauner , Paul Moore , Stephen Smalley , Eric Paris Cc: Al Viro , Jan Kara , selinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 78/79] selinux: switch to new ctime accessors Date: Wed, 21 Jun 2023 10:46:31 -0400 Message-ID: <20230621144735.55953-77-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230621144735.55953-1-jlayton@kernel.org> References: <20230621144507.55591-1-jlayton@kernel.org> <20230621144735.55953-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 In later patches, we're going to change how the ctime.tv_nsec field is utilized. Switch to using accessor functions instead of raw accesses of inode->i_ctime. Signed-off-by: Jeff Layton --- 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..d3908baddb30 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_ctime_set_current(ret); } return ret; } -- 2.41.0