[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141211190846.1e25e7fa@griffin>
Date: Thu, 11 Dec 2014 19:08:46 +0100
From: Jiri Benc <jbenc@...hat.com>
To: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
Cc: vadim4j@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH iproute2] ip: Simplify executing ip cmd within namespace
On Thu, 11 Dec 2014 15:33:34 -0200, Marcelo Ricardo Leitner wrote:
> In that case, it would be interesting to also accelerate the original use
> case, no? So all usages we currently have will benefit from this speed up
> without a change.
>
> if (command to be executed == myself)
> switch namespace, continue without fork/exec..
It's never good idea to do such tricks behind the user's back. This
particular case could easily break for users wanting to execute a
different ip binary (for whatever reason).
All programs should do what they are told to do, not try to outsmart
the user.
Jiri
--
Jiri Benc
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists