Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1459015rwb; Tue, 27 Sep 2022 13:27:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4lPNUzPl9dHi9DOD4OUwkIEINh1N6rNVdYESxoYh1qWXMcj3Soxtle380VATFlKgzGosMY X-Received: by 2002:a05:6402:298b:b0:44f:20a:2db2 with SMTP id eq11-20020a056402298b00b0044f020a2db2mr29815261edb.138.1664310440770; Tue, 27 Sep 2022 13:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664310440; cv=none; d=google.com; s=arc-20160816; b=d+Vao5i5CjrLbmjWFSnjeYjZf6c7JNABFJCaJO9HUH1UPvAKNi3CUs5XwEbO586cfD UmNbYGvT1GGQcHgK2L13eDcPhooWTBvE/NoEVu+xMSXin9t1EcnLF2r6kvW4WyxdbPEN UmOHCdNuVIWF055shhgIP5+aHFtTS4wn8Sndns92oosvAwoOObb3RigTM+iUbyj/iHp9 jpyfOhsESQPNBtb2hafF3UWgvHHFPCLNbOdnUsAr+5dsvLmPmQyDlledXAA8Sg1Ou9dH 32dGwnD+M6o2hcmxc8k6UZgW08xjBIfGBdJ5xua5/LNTtP8mo7J0vaqc7pZpR/QgHeBn Tm9Q== 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=pyVdgpytY464Wwac1wj/JuFEtrZAsdpLfTn1Ux1Va7c=; b=eYUXWElmLog1JTHknn8qRplUbeIa6IY1envBtNsPtN3Wp0xQXO+vzPywiGxX8w217I a56YOjdsluWzhXv1PGejCl68y4uxatott6DhS/BM4wwnvmNS1k020ZPMVGggEe40XOmn lCVvV6jX03M4XAF1FfglzzQRcHDOMjVL19aTkujWs4L25XfDYIHfRQl3VFO5p9YfHh75 kmzn555hIerQmSlIJtSoHLgry0B4MOBjK8kpbWMbRJk3Ozvi6cmRMeI7HyJG78Pmdr4E jnOHLoh7WcQqViZ+WGyhFpMgUMuzRMeXtSsKicKDzaFhj7OJQIdOtUo6Dfc3Httt61uz Pbww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=ZE05lJwW; 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 u3-20020aa7d983000000b00457e293e3easi197661eds.573.2022.09.27.13.26.55; Tue, 27 Sep 2022 13:27:20 -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=@yahoo.com header.s=s2048 header.b=ZE05lJwW; 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 S233005AbiI0UO5 (ORCPT + 99 others); Tue, 27 Sep 2022 16:14:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232996AbiI0UOK (ORCPT ); Tue, 27 Sep 2022 16:14:10 -0400 Received: from sonic304-28.consmr.mail.ne1.yahoo.com (sonic304-28.consmr.mail.ne1.yahoo.com [66.163.191.154]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA5011EC1C2 for ; Tue, 27 Sep 2022 13:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664309646; bh=pyVdgpytY464Wwac1wj/JuFEtrZAsdpLfTn1Ux1Va7c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=ZE05lJwW5SIZZSP6A3K45xP+KXwC2U+itygbuPi3VcES1eqS45DMbchmVohy7eaieQNm8VU8Po821VplWTy00IHQu2HU20JNqQ6Zc4Hz4EK8+tvo2CyrHFbGjWxm08+1gRncLLkxvviMZ82SmJrjd6JaruBGOHhZchIXFf7ggChwTn7Uu4DYNtj3y9PLQGTw1KCUMIdpWZe5VMTIRCFg1BALD+WBxshW1Zumpot8zl6H3Kzu/0Vih/6zG/S5VGEZdddQ5Xi7Qo2v8nA4mvPak4eHcY4xiJjeKskgyBofKHf+L3TeH+rism2oolI+VtH/XfBB7Tnka77nspQHQUjNGQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664309646; bh=eeFCjkCXqLM2LATQYYTIdyEAeEA7gIccLl/7eHQRyik=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=hUPZDbuMncWQD5jn3bklChMSaM+vdOmDk3IeuksoedQzFTe6M+E8/cF+FbW00LT14+CCQTj/kfBgfc85bplsfR991kaSIgSFN4bWDM1aCgnnO+DKG74vd7vi1ObN0ko2VoAbpFoZpGrULsEY8qcQLFreU/BGVnj+ZGEjk1F+thdxcZs+LX0NQhd2y/8ga2Gd+ZNRp/AizeMy+yqtbDrLv50x4MRvOgNPj6AaO+9kuuUTXgmgNwLmXK/xRb9pj73qw3B7VSBSj7N1Zfef7BwsLWurO61mNUUXdEy/QVYMG2GsPRsSJqN9UK36/EmFVIkv5b7JyJLxONKrexulhi2x3Q== X-YMail-OSG: xKwM1XMVM1mvm3mTPp958fYdRWQATey1DJdhfnAM9S3Ne1W5Cki.Ltfd5k3mctN AgwV8jfKha6pLcx.XgrW2iyrRv0q.0fxISZxL.TZLHsnPYOoOeNvcF9Fivn_E_Y1gNkhHrGEymsA 93lYjjjJIJxPmswan76ZnzegBihMVpu35uiW795WpqIjlc7365zy0A02uT5RQHKPv8lz31sidPgs d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.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Tue, 27 Sep 2022 20:14:06 +0000 Received: by hermes--production-gq1-7dfd88c84d-65ptt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 395ac973b3706d14ddbf652d9544c668; Tue, 27 Sep 2022 20:14:03 +0000 (UTC) From: Casey Schaufler To: casey.schaufler@intel.com, paul@paul-moore.com, linux-security-module@vger.kernel.org Cc: casey@schaufler-ca.com, linux-audit@redhat.com, jmorris@namei.org, selinux@vger.kernel.org, keescook@chromium.org, john.johansen@canonical.com, penguin-kernel@i-love.sakura.ne.jp, stephen.smalley.work@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH v38 37/39] LSM: Removed scaffolding function lsmcontext_init Date: Tue, 27 Sep 2022 12:54:19 -0700 Message-Id: <20220927195421.14713-38-casey@schaufler-ca.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220927195421.14713-1-casey@schaufler-ca.com> References: <20220927195421.14713-1-casey@schaufler-ca.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 The scaffolding function lsmcontext_init() is no longer used. Remove it. Signed-off-by: Casey Schaufler --- include/linux/security.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/include/linux/security.h b/include/linux/security.h index c190b9189287..f6a247033556 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -166,25 +166,6 @@ struct lsmcontext { int slot; /* Identifies the module */ }; -/** - * lsmcontext_init - initialize an lsmcontext structure. - * @cp: Pointer to the context to initialize - * @context: Initial context, or NULL - * @size: Size of context, or 0 - * @slot: Which LSM provided the context - * - * Fill in the lsmcontext from the provided information. - * This is a scaffolding function that will be removed when - * lsmcontext integration is complete. - */ -static inline void lsmcontext_init(struct lsmcontext *cp, char *context, - u32 size, int slot) -{ - cp->slot = slot; - cp->context = context; - cp->len = size; -} - /* * Data exported by the security modules * -- 2.37.3