Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1374126
| From | Paolo Abeni <pabeni@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next] security: drop the unused hook skb_owned_by |
| Date | 2016-04-08 12:30 +0200 |
| Message-ID | <rlBPP-2jm-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The skb_owned_by hook was added with the commit ca10b9e9a8ca
("selinux: add a skb_owned_by() hook") and later removed
when said commit was reverted.
Later on, when switching to list of hooks, a field named
'skb_owned_by' was included into the security_hook_head struct,
but without any users nor caller.
This commit removes the said left-over field.
Fixes: b1d9e6b0646d ("LSM: Switch to lists of hooks")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
include/linux/lsm_hooks.h | 1 -
security/security.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
index cdee11c..ae25378 100644
--- a/include/linux/lsm_hooks.h
+++ b/include/linux/lsm_hooks.h
@@ -1804,7 +1804,6 @@ struct security_hook_heads {
struct list_head tun_dev_attach_queue;
struct list_head tun_dev_attach;
struct list_head tun_dev_open;
- struct list_head skb_owned_by;
#endif /* CONFIG_SECURITY_NETWORK */
#ifdef CONFIG_SECURITY_NETWORK_XFRM
struct list_head xfrm_policy_alloc_security;
diff --git a/security/security.c b/security/security.c
index 3644b03..554c3fb 100644
--- a/security/security.c
+++ b/security/security.c
@@ -1848,7 +1848,6 @@ struct security_hook_heads security_hook_heads = {
.tun_dev_attach =
LIST_HEAD_INIT(security_hook_heads.tun_dev_attach),
.tun_dev_open = LIST_HEAD_INIT(security_hook_heads.tun_dev_open),
- .skb_owned_by = LIST_HEAD_INIT(security_hook_heads.skb_owned_by),
#endif /* CONFIG_SECURITY_NETWORK */
#ifdef CONFIG_SECURITY_NETWORK_XFRM
.xfrm_policy_alloc_security =
--
1.8.3.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH net-next] security: drop the unused hook skb_owned_by Paolo Abeni <pabeni@redhat.com> - 2016-04-08 12:30 +0200 Re: [PATCH net-next] security: drop the unused hook skb_owned_by Casey Schaufler <casey@schaufler-ca.com> - 2016-04-08 18:30 +0200 Re: [PATCH net-next] security: drop the unused hook skb_owned_by Paul Moore <paul@paul-moore.com> - 2016-04-08 21:40 +0200 Re: [PATCH net-next] security: drop the unused hook skb_owned_by James Morris <jmorris@namei.org> - 2016-04-11 04:00 +0200
csiph-web