Re: [PATCH 3/3] net/udevns: Netlink module to forward uevent to containers

2015-09-11 Thread Michael J Coss
On 9/10/2015 9:05 PM, Eric W. Biederman wrote: > "Michael J. Coss" writes: > >> New generic netlink module to provide an interface with the new >> forwarding interface for uevent. The driver allows a user to >> direct a uevent as read from the kernel to

Re: [COMMERCIAL] Re: [PATCH 2/3] lib/kobject_uevent.c: add uevent forwarding function

2015-09-11 Thread Michael J Coss
On 9/10/2015 8:54 PM, Eric W. Biederman wrote: > "Michael J. Coss" writes: > >> Adds capability to allow userspace programs to forward a given event to >> a specific network namespace as determined by the provided pid. In >> addition, support for a per-name

Re: [PATCH 1/3] lib/kobject_uevent.c: disable broadcast of uevents to other namespaces

2015-09-11 Thread Michael J Coss
On 9/10/2015 8:36 PM, Eric W. Biederman wrote: > "Michael J. Coss" writes: > >> Restrict sending uevents to only those listeners operating in the same >> network namespace as the system init process. This is the first step >> toward allowing policy control of

Re: [COMMERCIAL] Re: [PATCH 0/3] kobject: support namespace aware udev

2015-09-09 Thread Michael J Coss
On 9/9/2015 4:28 PM, Greg KH wrote: > On Wed, Sep 09, 2015 at 04:16:49PM -0400, Michael J Coss wrote: >> On 9/9/2015 4:09 PM, Greg KH wrote: >>> On Wed, Sep 09, 2015 at 03:05:29PM -0400, Michael J Coss wrote: >>>> On 9/8/2015 11:54 PM, Greg KH wrote: >>>>

Re: [PATCH 0/3] kobject: support namespace aware udev

2015-09-09 Thread Michael J Coss
On 9/9/2015 4:09 PM, Greg KH wrote: > On Wed, Sep 09, 2015 at 03:05:29PM -0400, Michael J Coss wrote: >> On 9/8/2015 11:54 PM, Greg KH wrote: >>> On Tue, Sep 08, 2015 at 10:10:27PM -0400, Michael J. Coss wrote: >>>> Currently when a uevent occurs, the event i

Re: [PATCH 2/3] lib/kobject_uevent.c: add uevent forwarding function

2015-09-09 Thread Michael J Coss
On 9/8/2015 11:55 PM, Greg KH wrote: > On Tue, Sep 08, 2015 at 10:10:29PM -0400, Michael J. Coss wrote: >> Adds capability to allow userspace programs to forward a given event to >> a specific network namespace as determined by the provided pid. In >> addition, suppor

Re: [PATCH 0/3] kobject: support namespace aware udev

2015-09-09 Thread Michael J Coss
On 9/8/2015 11:54 PM, Greg KH wrote: > On Tue, Sep 08, 2015 at 10:10:27PM -0400, Michael J. Coss wrote: >> Currently when a uevent occurs, the event is replicated and sent to every >> listener on the kernel netlink socket, ignoring network namespaces >> boundaries, >>

[PATCH 1/3] lib/kobject_uevent.c: disable broadcast of uevents to other namespaces

2015-09-08 Thread Michael J. Coss
Restrict sending uevents to only those listeners operating in the same network namespace as the system init process. This is the first step toward allowing policy control of the forwarding of events to other namespaces in userspace. Signed-off-by: Michael J. Coss --- lib/kobject_uevent.c | 4

[PATCH 3/3] net/udevns: Netlink module to forward uevent to containers

2015-09-08 Thread Michael J. Coss
format. Signed-off-by: Michael J. Coss --- include/uapi/linux/Kbuild | 1 + include/uapi/linux/udevns.h | 19 net/Kconfig | 1 + net/Makefile| 1 + net/udevns/Kconfig | 9 net/udevns/Makefile | 5 ++ net/udevns/udevns.c

[PATCH 2/3] lib/kobject_uevent.c: add uevent forwarding function

2015-09-08 Thread Michael J. Coss
namespace. Signed-off-by: Michael J. Coss --- include/linux/kobject.h | 3 ++ include/net/net_namespace.h | 3 ++ kernel/ksysfs.c | 12 ++ lib/kobject_uevent.c| 90 + 4 files changed, 108 insertions(+) diff --git a

[PATCH 0/3] kobject: support namespace aware udev

2015-09-08 Thread Michael J. Coss
. Michael J. Coss (3): lib/kobject_uevent.c: disable broadcast of uevents to other namespaces lib/kobject_uevent.c: add uevent forwarding function net/udevns: Netlink module to forward uevent to containers include/linux/kobject.h | 3 ++ include/net/net_namespace.h | 3 ++ include