[PATCH 02/27] netlink: add a basic parser of NETLINK_CRYPTO messages

JingPiao Chen chenjingpiao at gmail.com
Sun Jul 23 08:33:36 UTC 2017


On Sat, Jul 22, 2017 at 09:53:37PM +0300, Dmitry V. Levin wrote:
> On Sat, Jul 22, 2017 at 08:43:32PM +0800, JingPiao Chen wrote:
[...]
> > diff --git a/defs.h b/defs.h
> > index 4048915..9d99575 100644
> > --- a/defs.h
> > +++ b/defs.h
> > @@ -711,6 +711,9 @@ typedef bool (*netlink_decoder_t)(struct tcb *,
const struct nlmsghdr *,
> >  extern bool \
> >  decode_netlink_ ## name(struct tcb *, const struct nlmsghdr *, \
> >   kernel_ulong_t addr, unsigned int len)
> > +#ifdef HAVE_LINUX_CRYPTOUSER_H
> > +DECL_NETLINK(crypto);
> > +#endif
> >  DECL_NETLINK(selinux);
> >  DECL_NETLINK(sock_diag);
>
> Why decode_netlink_crypto declaration is ifdef'ed?

NETLINK_CRYPTO instroduced by linux kernel commit v3.0-7152-ga38f790.
netlink_crypto.c have a global guard, decode_netlink_crypto be compiler
only when have linux/cryptouser.h.

>
[...]

--
JingPiao Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170723/4f759059/attachment.html>


More information about the Strace-devel mailing list