Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29493218rwd; Wed, 5 Jul 2023 12:41:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7k3dzh+A2DeFCUmGg4FGVp/K32x4E6f3zKkQv48k9w2WQYFmoY3+7Z5lhKZjTypJwkRCr4 X-Received: by 2002:a05:6a20:144e:b0:126:e6f1:7104 with SMTP id a14-20020a056a20144e00b00126e6f17104mr16277835pzi.45.1688586091173; Wed, 05 Jul 2023 12:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688586091; cv=none; d=google.com; s=arc-20160816; b=iDRljANWyK2qyy+MAPOrIxT7iP5Z8p9MYbreQQDxHaEXtR3Q3/+bCeAauq8SSLZL3T asl6TEWOR9mth2wVbQxs95G6IqTAiedrYaB7GSC4z3lU/FmmyPMNb+AyZ3urApINc/E3 jbOWQK2jEdphWDFQJwGV8CNgQB648pLIPbNm7Z4NJhxOBc9GTCjR4XmDrJj9lTlqQOlx FCYH/sG8W7OZCuc5IxkIBddalyLgQqiuMu+8fbVC3ggADZrRohVv7npOhXK2bF2YjS0S YkSkG3IB9K/TgyJatlEAMKt7tA33rBcX8g3XnsG4olgRu8MdQQu86Trm8yym61t3wHAt F1EQ== 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=PVAK/mXy3JNsi/k+UiEAI2huoS9VjzQ1sWXK1RoUlkU=; fh=UdZOP/YRNezamEBp8t53mSY73lgNE/RrWyfN3Q4K3zg=; b=gGefId+AT4AyU9aqI1rRzbJSuc19fSgB/qCjOrReNYBQkDQst+WLN70rjZ8dH+iNgQ 2M13mDJUnVk69BfG4RhbM/M/S9NHJCnPh6mkA/Ckd1f+Ac2grN+Ys3x5cUFSO2KMCBQN 02HUnj7FOnV7nECOt5s8YnJRFtw3oez4hBZXsz29eWMGmQca5EzyHvxRU/sVSWOwB1vL RiJ88BUVOz751OQN0wdpSULH8urLJPbjcUgln3zvnNR2qVzhcW9vdnPKm6ANfpcC8qK8 lRsYSZnqxHOC/BejLaYfVP8Kv+LJDB/h9v1aurTKuOrZv3u6D7VDu4h8Pzht6BvW5mxb mCXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=btSVBxT5; 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 r20-20020a62e414000000b006688c47e5b4si9767527pfh.399.2023.07.05.12.41.16; Wed, 05 Jul 2023 12:41:31 -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=btSVBxT5; 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 S234194AbjGETLZ (ORCPT + 99 others); Wed, 5 Jul 2023 15:11:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234108AbjGETKb (ORCPT ); Wed, 5 Jul 2023 15:10:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B47D24203; Wed, 5 Jul 2023 12:05:57 -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 94B1961705; Wed, 5 Jul 2023 19:05:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F8D9C433C9; Wed, 5 Jul 2023 19:05:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583947; bh=XfqTBNQp2owuW7Y/glX6VYcpT/QJIApBnBVCG8ov/H8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=btSVBxT54HuwxgjfGwTto13ThwkDsnlcJ2KYyL6Ygw70ybKyP3UsJIxgNNfzRacgb 2v/nMZ1MVLNSbL+aHKPp/H8fDdgjhs3LEYCSiWK48EX0qtWJMV/zilm3ALvPK7//dk d7L3RGSTnVt5ZVfl23geIxLlgvKYpC2a53XZRma0zj9zPsw9z8DkOfpsx78FjKwaA9 J2n1E4KXwUSJGyWp/9tUEtP4oAkaiT/5KDRhbo+AziERj5mdAg9/+HKFuO2Vpu2ouc b4qhW3vLHx2D/X9eVRdFKbNXBTPF8ZtFnd0m/6b15OUmnOnRkqQRmxDgaT8n50g5Pf 3V5cQ6KW6x/Og== From: Jeff Layton To: Christian Brauner , Paul Moore , James Morris , "Serge E. Hallyn" Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [PATCH v2 90/92] security: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:01:55 -0400 Message-ID: <20230705190309.579783-88-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230705190309.579783-1-jlayton@kernel.org> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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 --- 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