From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44918C6FA82 for ; Tue, 27 Sep 2022 20:14:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664309656; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=sHTZ7S2oXoGmFqq/NqBJ39J2cgKl3b/McVqJIoq4YHo=; b=SBsLrrHlytnNf0SKukEgUyVeHHxKQUmy5mtjfeU5DI1T128SWq4VF5tJ+a4/s44SCsaC2H W0xHf3LhnSvDFBetAsjR07k78KcuHqeE3aYmT8Uf1tiJDI8vOnrKpPwksRwj3Luf0MXDK2 TnNl9P8xVQfDlxgevO8m+sxQnic2Hi8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-228-Qkrf4XtnM8SuaAaztTPymA-1; Tue, 27 Sep 2022 16:14:12 -0400 X-MC-Unique: Qkrf4XtnM8SuaAaztTPymA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 768EE80C8C2; Tue, 27 Sep 2022 20:14:11 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 673F12166B26; Tue, 27 Sep 2022 20:14:11 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 46DA219465B8; Tue, 27 Sep 2022 20:14:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 5E0D31946586 for ; Tue, 27 Sep 2022 20:14:10 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 50789C15BA5; Tue, 27 Sep 2022 20:14:10 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast07.extmail.prod.ext.rdu2.redhat.com [10.11.55.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 483B2C15BA4 for ; Tue, 27 Sep 2022 20:14:10 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 28A453C01E09 for ; Tue, 27 Sep 2022 20:14:10 +0000 (UTC) Received: from sonic304-28.consmr.mail.ne1.yahoo.com (sonic304-28.consmr.mail.ne1.yahoo.com [66.163.191.154]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-475-YOW8fldQPgilxurVKj9Mdw-1; Tue, 27 Sep 2022 16:14:08 -0400 X-MC-Unique: YOW8fldQPgilxurVKj9Mdw-1 X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2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ohjxENxHhN1.SJ8RSsLFX.fccNVLtgh3HG sIiDSad5Pel_y.rEqOu_5fk6WYEd4JhWHfK61kMSBcnKlmqKoDbrYzCqlQM9FGBihG2gpFM3h8JW xGCPQuxms.GxJUcgFSH5sUaoTn2DkVc3LAEd8stEj9xHt_wgPbTA1DrtH1m3dSiXSledhHp4UfsS Asp7VcpWGXLocZs6E3KiOpeqQoiQd6Rbhi48TMDACHwxGDp3qBMEWC0muP0o5yCfO5XL47AY31Et Q5h1Cjq1AIy9cg6d9dBVpbccflbO.Hhx_D2zoWU5CWdujqBIK8fJgssnFyrXl_kAozPSK3RDkPOq mnzQso6aYV3JAN_624c6r1qHPfTnqk0RIU0fBoCAET_K94ioWgtvkN6WNChWfN4gg5EQ9Lix3AXv lHBjmvAn3Nc09jzsa2pWd2k84kpqNt10nS6uOdhPEwFCi3y0jVgbPYleQhwz1ss3XTu938YWp4Xa iGxRE3JqK1s897gXb8cEv.uTvLrlqZ6QOHsw88HerbE_1uaCzPKdpA92R.QG0b.nwspZQtiMRxiI wbQAwwwJ1LagmbA7fEqWxBGuwSrCaUQ0Ka7OK7GvT2WRoSmSL6Gsj5XRXpQo- X-Sonic-MF: Received: from sonic.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 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> In-Reply-To: <20220927195421.14713-1-casey@schaufler-ca.com> References: <20220927195421.14713-1-casey@schaufler-ca.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: john.johansen@canonical.com, selinux@vger.kernel.org, jmorris@namei.org, linux-kernel@vger.kernel.org, linux-audit@redhat.com Errors-To: linux-audit-bounces@redhat.com Sender: "Linux-audit" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit