[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220609230146.319210-32-casey@schaufler-ca.com>
Date: Thu, 9 Jun 2022 16:01:44 -0700
From: Casey Schaufler <casey@...aufler-ca.com>
To: casey.schaufler@...el.com, jmorris@...ei.org,
linux-security-module@...r.kernel.org, selinux@...r.kernel.org
Cc: casey@...aufler-ca.com, linux-audit@...hat.com,
keescook@...omium.org, john.johansen@...onical.com,
penguin-kernel@...ove.sakura.ne.jp, paul@...l-moore.com,
stephen.smalley.work@...il.com, linux-kernel@...r.kernel.org
Subject: [PATCH v36 31/33] LSM: Removed scaffolding function lsmcontext_init
The scaffolding function lsmcontext_init() is no longer used.
Remove it.
Signed-off-by: Casey Schaufler <casey@...aufler-ca.com>
---
include/linux/security.h | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/include/linux/security.h b/include/linux/security.h
index 4cf551133e99..5ff363624b82 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -149,25 +149,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.35.1
Powered by blists - more mailing lists