Re: [PATCH net-next 2/3] rtnl: protect do_setlink from IFLA_XDP_ATTACHED

2016-07-20 Thread Alexei Starovoitov
On Wed, Jul 20, 2016 at 05:22:34PM -0700, Brenden Blanco wrote: > The IFLA_XDP_ATTACHED nested attribute is meant for read-only, and while > do_setlink properly ignores it, it should be more paranoid and reject > commands that try to set it. > > Signed-off-by: Brenden Blanco Suggested-by: Daniel

[PATCH net-next 2/3] rtnl: protect do_setlink from IFLA_XDP_ATTACHED

2016-07-20 Thread Brenden Blanco
The IFLA_XDP_ATTACHED nested attribute is meant for read-only, and while do_setlink properly ignores it, it should be more paranoid and reject commands that try to set it. Signed-off-by: Brenden Blanco --- net/core/rtnetlink.c | 4 1 file changed, 4 insertions(+) diff --git a/net/core/rtne