lkml.org 
[lkml]   [2021]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH selinux v3] selinux: remove unneeded ipv6 hook wrappers
On Mon, Oct 11, 2021 at 4:22 PM Florian Westphal <fw@strlen.de> wrote:
>
> Netfilter places the protocol number the hook function is getting called
> from in state->pf, so we can use that instead of an extra wrapper.
>
> While at it, remove one-line wrappers too and make
> selinux_ip_{out,forward,postroute} useable as hook function.
>
> Signed-off-by: Florian Westphal <fw@strlen.de>
> ---
> v3: also remove the one-line wrappers, just adjust function signature
> of the actual functions (Ondrej Mosnacek)
>
> security/selinux/hooks.c | 80 +++++++++-------------------------------
> 1 file changed, 18 insertions(+), 62 deletions(-)

Merged into selinux/next, thanks Florian!

--
paul moore
www.paul-moore.com

\
 
 \ /
  Last update: 2021-10-11 23:51    [W:0.065 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site