[PATCH] lsm,selinux: pass flowi_common instead of flowi to the LSM hooks
Paul Moore
paul at paul-moore.com
Mon Nov 23 23:47:17 UTC 2020
On Thu, Nov 19, 2020 at 10:02 PM James Morris <jmorris at namei.org> wrote:
> On Thu, 19 Nov 2020, Paul Moore wrote:
> > As pointed out by Herbert in a recent related patch, the LSM hooks do
> > not have the necessary address family information to use the flowi
> > struct safely. As none of the LSMs currently use any of the protocol
> > specific flowi information, replace the flowi pointers with pointers
> > to the address family independent flowi_common struct.
> >
> > Reported-by: Herbert Xu <herbert at gondor.apana.org.au>
> > Signed-off-by: Paul Moore <paul at paul-moore.com>
>
> Acked-by: James Morris <jamorris at linux.microsoft.com>
Thanks. Seeing no further comments or objections, and given the
discussion in the previous draft of the patch, I've gone again and
merged this into selinux/next.
--
paul moore
www.paul-moore.com
More information about the Linux-security-module-archive
mailing list