Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758707AbcDHQ3R (ORCPT ); Fri, 8 Apr 2016 12:29:17 -0400 Received: from nm47-vm9.bullet.mail.bf1.yahoo.com ([216.109.114.218]:53350 "EHLO nm47-vm9.bullet.mail.bf1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758625AbcDHQ3O (ORCPT ); Fri, 8 Apr 2016 12:29:14 -0400 X-Greylist: delayed 319 seconds by postgrey-1.27 at vger.kernel.org; Fri, 08 Apr 2016 12:29:14 EDT X-Yahoo-Newman-Id: 676228.59817.bm@smtp209.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: qokXhjAVM1lx0uRZnstYBM2qoF3gCEwnGJs6CGeQrQU8ooK 40RD8okYclfRJy2W5RI5ob5ZRGWukUuuXaIg2RO0Dfm5B_77iBSIdNGYK.tg zwbruzTH5y67BvCkWTrIj5e.A8AK4o2K_9qe0WLQbke67hGxsHYlWFUgzNm1 kfncQIrOTTUFnShZG68ZrsW0SeUyjWp7TKi.4wb1qtOAULT14ZfNhEuNugVs uhV4s4MHSQzt7RcQF5n0z5W.LnnPm1YfbVcUP2Twh4FY.1Nk.x2EflS6J_jg 6sdnJNiW2ZUA.DPx9wka7ClrGjeWLRirG73WXarRw.8yw0eLZmVoF50lL5nJ _u2468RTHjEV3gcmCMzeUtrsb2sK60hmVcfrQOf1ssGJh_8ett1L4EQAUSgW iLbMDW4PAF_Jc7kCMtFcAq3LwUGrEpfeqWCezir64DxtnqipBGPgoA6.9FUf 9GE3ydrIfRUFcXciJE_0fc2CqCC_5ycQtAJIV_vnmKpqs8COLoOUmJ7chvgU - X-Yahoo-SMTP: OIJXglSswBDfgLtXluJ6wiAYv6_cnw-- Subject: Re: [PATCH net-next] security: drop the unused hook skb_owned_by To: Paolo Abeni , linux-security-module@vger.kernel.org References: <25cbac8df32da8527bac7187f606e6351862702d.1460110723.git.pabeni@redhat.com> Cc: James Morris , "Serge E. Hallyn" , Kees Cook , Paul Moore , linux-kernel@vger.kernel.org, selinux@tycho.nsa.gov From: Casey Schaufler Message-ID: <5707DB19.6010702@schaufler-ca.com> Date: Fri, 8 Apr 2016 09:23:54 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <25cbac8df32da8527bac7187f606e6351862702d.1460110723.git.pabeni@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1733 Lines: 45 On 4/8/2016 3:20 AM, Paolo Abeni wrote: > 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 Acked-by: Casey Schaufler > --- > 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 =