Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29496716rwd; Wed, 5 Jul 2023 12:45:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlHdJRw83HVgjFMIieaGN/v9/qROpsrP0bVFbOvkyYADwda/q3YAKPdVF/yP3p7RhtzJ5aUj X-Received: by 2002:a05:6a00:1f18:b0:668:8ad5:778f with SMTP id be24-20020a056a001f1800b006688ad5778fmr4724826pfb.17.1688586303211; Wed, 05 Jul 2023 12:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688586303; cv=none; d=google.com; s=arc-20160816; b=E6k7gmCsnQfeWdBMhw/W4eeizhfTDXUtxxpGS/1ndOtu3q8Qc3/9Ot3jawHLdLkm8b CNVuD9Q+fQkJ2NeTC+sB1y5o6SpLixcQWtDP3rKjHmw8pq6qs7ubQ3Zpn7CXgZ+AC+Hc pxK8c4ArMa/MOnwF+BTpy0ets7FHv4a/68NFqoVC88xKqyhIzR8xxw9eflFPfOKAqoun may+TrNhsvUi4XSSJJbKye5xr0atHNEnNMYK/z3axF7yrXAVFXMjRkgfRpZLrybYJEWf mEwEYjTh/ETj8+0ZKPgBLrsKVHpM6BeubcNOF+DQVhP3XW0NdFM0XfpgC1VvNlf3vuKc fNWQ== 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=J2cqJEpyHBMV8v3ue1kwqqPjsSFhGhMjAqJxhcU9krk=; fh=xhF5qRm/teEA73yFz+l3jw2qqn9VJ4xv+YNUdGiHzkY=; b=dfTTvhYqr4jRSwXya3uIii5+M2yQLeTxcY7/6Qa9DrqG1vBjqnqVUTtweQtYEzkHmF itpFLEf1vz3wZUX14WZID+L7gfkhz/72hY5RRl1OngqRT0EnDlTieBdTblWLlVP4s8Vv BfnXOpPJNfEzYvyIy3K7hnMhaCSGupWDiBkwTDoRTVbUhypgXbpkDXhklEIchWu5AtZk pquH7Fh8NGG3mWNGI/V1/Mya7U04B3vVq2soBBiK2YUHFKWR6zq5F3I6TT+Xj3/1133m Y+S8vCoIs8ouIeGnwSkj52AS20MJWJkpenlFHM64Cx1Djl6lP50EgRjXpblUNEUCcOYK 7dwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BfI2Jszn; 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 bv12-20020a056a00414c00b00676fd3ad23dsi20779902pfb.384.2023.07.05.12.44.50; Wed, 05 Jul 2023 12:45:03 -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=BfI2Jszn; 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 S234189AbjGETLW (ORCPT + 99 others); Wed, 5 Jul 2023 15:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234110AbjGETKe (ORCPT ); Wed, 5 Jul 2023 15:10:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49EC5420A; Wed, 5 Jul 2023 12:05:58 -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 40CB56171C; Wed, 5 Jul 2023 19:05:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2375C433C7; Wed, 5 Jul 2023 19:05:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583948; bh=h+YjMsn4Qu+tNMhA5V9icLWH3DAN1ha4KPOWk0eHFlw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BfI2JsznIuKtZGtFSEhKOPI06bCrFYexEv6QgKLLavNRCiNqPZ2fCXh5YMZ3+qk6z uHYKtQrOAtE1+9yqspAq/SkmWtS8Chv2RrzTpqMZtI+ZfQb6mqfUu4DBh/Uk+kQf6M WTTV67y1Nq1a+vJbkVT6313ICRCjcJlVO3XrdnKVEyNxJNT43Ze1phh/FWKkKqYyrO wWi3b4B2v6gc0Abd122oA7HKFFfpLL/nUvNvcMjcJ14iaudOj2eod8SdimXSUHHX2B 6K1v3jCGj/D+qUnYwXWZNpeAVJozPL+dzknN4Hp8nb0PLYA4zgWz1nHWhhNx+p0E2U ERz+czJ3zy1+g== From: Jeff Layton To: Christian Brauner , Paul Moore , Stephen Smalley , Eric Paris Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, selinux@vger.kernel.org Subject: [PATCH v2 91/92] selinux: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:01:56 -0400 Message-ID: <20230705190309.579783-89-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/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