Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3156591rdh; Thu, 28 Sep 2023 04:35:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkHoPBKpHPMYkZdF9Kmv9HW03L6ToYeDJubSnPyTqsHcms59/XcU++C5LYOb2fUuCq6Sf+ X-Received: by 2002:a05:6870:6386:b0:1d5:8c26:74e5 with SMTP id t6-20020a056870638600b001d58c2674e5mr1006759oap.10.1695900906678; Thu, 28 Sep 2023 04:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695900906; cv=none; d=google.com; s=arc-20160816; b=T52KqYw42ckt1O9ENAZXTPAR8hESJOsu2WVySl0NSq+gcY4YxDhh8nz7ay5sNNHhrC LH8r9KBVT3h73KqGITk6iz+bcyStdtCB18V6DHwFexraLv3N1fo3/gRgLrzifrFXg+Rd pftb9GCHh/4XVl+z4eIQ1nmocoYLA50p7UMg22/n07hjLWDfhRVhYvw8T78BHxCehmWk /UfJx3lzTDTQ3ObjXRWV5c9E/ujaB11SqyRN7589teteLU/pDDI8D8QgvPgy+ecVBrT+ apEmOswdkFJGqzNH1PoDt5G0u28NkL4R+YijgX5RArhwfQ8up8BWv5uWgtYUquEQgjUK KQlQ== 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=24rkF7ih4FoZDlUWL/JBlcDRm68cAJ+3eWLp8kLmYLc=; fh=gCHJsFekNeziAabT6S8Z3/qglWAWufJIu2FsfAuCKVw=; b=ekufA/qnMyEUw0Rk3a3D0GD4BIJpB4KKCEjHSMua+lKtN4dEZjK4qFE+fNVOpagk1H tEqMeVc/zuTI2ERBxBj+cnJUBrpRoJ7MM9/u5NnN3eiXlb/ouuLm1IYNS/QUU3Vdtnxn mNVwvJs3CwIPaUUNM9fs9DIa8QR5T16T3K3+RZdKeqNY3zebpylOGk8YAVOooiIAPdSP 8N99p3agBm8/ke+a9I03AsUXFE8kbb4j8huKJMaE1YGcXWBuoYVfU4psYtYAQmFUOi2d o7HlGqA4w73YkakQwqvDw21TGtiXgHrymP5sJyhDwtuoiAnaqa/F8YVCKYFR663IWtTw momA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ucrCe/jl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y17-20020a63de51000000b0056949ba3f3fsi6587037pgi.253.2023.09.28.04.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:35:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ucrCe/jl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 792A0802A6CF; Thu, 28 Sep 2023 04:22:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231983AbjI1LWM (ORCPT + 99 others); Thu, 28 Sep 2023 07:22:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232085AbjI1LVh (ORCPT ); Thu, 28 Sep 2023 07:21:37 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A092630EE; Thu, 28 Sep 2023 04:05:54 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0A97C116CB; Thu, 28 Sep 2023 11:05:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899154; bh=r5SK+jr3EBI0menL2V5UmA+6WeqJoTdE3YJ7XmcoehI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ucrCe/jlvNXPJgL05R1SUNtmRqPO/P0DUsQXZJBddiWRi7Blb7Q+kFkwNaB5OMmj0 tYVo61uaHGMTilnFpPAJX+i2JDQ8SAlezHEXEKJVzFijwYV73XS5FDkalLNESrCDpq M1LXP4gH2JXl9gR/ME/Or0KJQxPD/5KPoOwikmk0Bc1PHLKF0UZaKZlqvPkQxXes6R aMDtJ/A//ISOlIRyD8kgS4Ntx2pZ5CJX01s3dDwVv8x5T9znkp5jExXdqXUWYChbi0 6ytCJGCt01Ht13uHEllSyXZwN72ja6OZpoOIl0eGOdWkC7ocUiTJWURwEOWwvkNfNe 4lqGuONxgu5WA== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-security-module@vger.kernel.org Subject: [PATCH 84/87] security: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:03:33 -0400 Message-ID: <20230928110413.33032-83-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928110413.33032-1-jlayton@kernel.org> References: <20230928110300.32891-1-jlayton@kernel.org> <20230928110413.33032-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 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:22:15 -0700 (PDT) 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 3aa75fffa8c9..9e7cde913667 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_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_private = data; if (S_ISDIR(mode)) { inode->i_op = &simple_dir_inode_operations; -- 2.41.0