Skip to content

Commit 3c9d629

Browse files
Paolo AbeniJames Morris
authored andcommitted
security: drop the unused hook skb_owned_by
The skb_owned_by hook was added with the commit ca10b9e ("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: b1d9e6b ("LSM: Switch to lists of hooks") Signed-off-by: Paolo Abeni <pabeni@redhat.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com> Acked-by: Paul Moore <pmoore@paul-moore.com> Signed-off-by: James Morris <james.l.morris@oracle.com>
1 parent 9735a22 commit 3c9d629

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

include/linux/lsm_hooks.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,6 @@ struct security_hook_heads {
18041804
struct list_head tun_dev_attach_queue;
18051805
struct list_head tun_dev_attach;
18061806
struct list_head tun_dev_open;
1807-
struct list_head skb_owned_by;
18081807
#endif /* CONFIG_SECURITY_NETWORK */
18091808
#ifdef CONFIG_SECURITY_NETWORK_XFRM
18101809
struct list_head xfrm_policy_alloc_security;

security/security.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,6 @@ struct security_hook_heads security_hook_heads = {
18481848
.tun_dev_attach =
18491849
LIST_HEAD_INIT(security_hook_heads.tun_dev_attach),
18501850
.tun_dev_open = LIST_HEAD_INIT(security_hook_heads.tun_dev_open),
1851-
.skb_owned_by = LIST_HEAD_INIT(security_hook_heads.skb_owned_by),
18521851
#endif /* CONFIG_SECURITY_NETWORK */
18531852
#ifdef CONFIG_SECURITY_NETWORK_XFRM
18541853
.xfrm_policy_alloc_security =

0 commit comments

Comments
 (0)