[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140123160859.147c6878@nehalam.linuxnetplumber.net>
Date: Thu, 23 Jan 2014 16:08:59 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: netdev@...r.kernel.org, Jamal Hadi Salim <jhs@...atatu.com>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [Patch net-next v2 3/5] net_sched: act: move
tcf_hashinfo_init() into tcf_register_action()
On Thu, 23 Jan 2014 14:35:23 -0800
Cong Wang <xiyou.wangcong@...il.com> wrote:
>
> struct tc_action {
> void *priv;
> - const struct tc_action_ops *ops;
> + struct tc_action_ops *ops;
As much as possible all function tables should be constant.
One of the rootkit tricks is to overwrite a function table entry
at runtime. Granted tc action is a minor corner of the exposed
universe, but this seems a step backwards when the only real
gain is some refactoring/cleanup.
--
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