Re: [PATCH] iproute: disallow ip rule del without parameters

2016-09-01 Thread Stephen Hemminger
On Tue, 30 Aug 2016 13:51:56 +0200 Michal Kubecek wrote: > On Mon, Aug 29, 2016 at 10:53:25AM -0700, Stephen Hemminger wrote: > > On Wed, 24 Aug 2016 23:43:00 +0300 > > "Andrey Jr. Melnikov" wrote: > > > > > Disallow run `ip rule del` without any parameter to avoid delete any first > > > rule

Re: [PATCH] iproute: disallow ip rule del without parameters

2016-08-30 Thread Michal Kubecek
On Mon, Aug 29, 2016 at 10:53:25AM -0700, Stephen Hemminger wrote: > On Wed, 24 Aug 2016 23:43:00 +0300 > "Andrey Jr. Melnikov" wrote: > > > Disallow run `ip rule del` without any parameter to avoid delete any first > > rule from table. ... > Actually ip rule delete without arguments deletes all

Re: [PATCH] iproute: disallow ip rule del without parameters

2016-08-29 Thread Stephen Hemminger
On Wed, 24 Aug 2016 23:43:00 +0300 "Andrey Jr. Melnikov" wrote: > Disallow run `ip rule del` without any parameter to avoid delete any first > rule from table. > > Signed-off-by: Andrey Jr. Melnikov > --- > > diff --git a/ip/iprule.c b/ip/iprule.c > index 8f24206..70562c5 100644 > --- a/ip/ipr

[PATCH] iproute: disallow ip rule del without parameters

2016-08-24 Thread Andrey Jr. Melnikov
Disallow run `ip rule del` without any parameter to avoid delete any first rule from table. Signed-off-by: Andrey Jr. Melnikov --- diff --git a/ip/iprule.c b/ip/iprule.c index 8f24206..70562c5 100644 --- a/ip/iprule.c +++ b/ip/iprule.c @@ -346,6 +346,11 @@ static int iprule_modify(int cmd, int a