Re: [PATCH] crypto: user - make NETLINK_CRYPTO work inside netns

2019-07-26 Thread Herbert Xu
Ondrej Mosnacek wrote: > Currently, NETLINK_CRYPTO works only in the init network namespace. It > doesn't make much sense to cut it out of the other network namespaces, > so do the minor plumbing work necessary to make it work in any network > namespace. Code inspired by net/core/sock_diag.c. > >

Re: [PATCH] crypto: user - make NETLINK_CRYPTO work inside netns

2019-07-09 Thread Herbert Xu
On Tue, Jul 09, 2019 at 05:28:35PM +0200, Ondrej Mosnacek wrote: > > I admit I'm not an expert on Linux namespaces, but aren't you > confusing network and user namespaces? Unless I'm mistaken, these > changes only affect _network_ namespaces (which only isolate the > network stuff itself) and the s

Re: [PATCH] crypto: user - make NETLINK_CRYPTO work inside netns

2019-07-09 Thread Ondrej Mosnacek
On Tue, Jul 9, 2019 at 4:38 PM Herbert Xu wrote: > On Tue, Jul 09, 2019 at 01:11:24PM +0200, Ondrej Mosnacek wrote: > > Currently, NETLINK_CRYPTO works only in the init network namespace. It > > doesn't make much sense to cut it out of the other network namespaces, > > so do the minor plumbing wor

Re: [PATCH] crypto: user - make NETLINK_CRYPTO work inside netns

2019-07-09 Thread Herbert Xu
On Tue, Jul 09, 2019 at 01:11:24PM +0200, Ondrej Mosnacek wrote: > Currently, NETLINK_CRYPTO works only in the init network namespace. It > doesn't make much sense to cut it out of the other network namespaces, > so do the minor plumbing work necessary to make it work in any network > namespace. Co

[PATCH] crypto: user - make NETLINK_CRYPTO work inside netns

2019-07-09 Thread Ondrej Mosnacek
Currently, NETLINK_CRYPTO works only in the init network namespace. It doesn't make much sense to cut it out of the other network namespaces, so do the minor plumbing work necessary to make it work in any network namespace. Code inspired by net/core/sock_diag.c. Tested using kcapi-dgst from libkca