lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120104135813.06af6984@nehalam.linuxnetplumber.net>
Date:	Wed, 4 Jan 2012 13:58:13 -0800
From:	Stephen Hemminger <shemminger@...tta.com>
To:	Shreyas Bhatewara <sbhatewara@...are.com>
Cc:	"VMware, Inc." <pv-drivers@...are.com>, netdev@...r.kernel.org
Subject: [PATCH] vmxnet3" make ethtool ops const

All tables of function pointers should be const to make hacks
more difficult. Compile tested only.

Signed-off-by: Stephen Hemminger <shemminger@...tta.com>


--- a/drivers/net/vmxnet3/vmxnet3_ethtool.c	2011-12-19 09:53:44.815309363 -0800
+++ b/drivers/net/vmxnet3/vmxnet3_ethtool.c	2012-01-04 13:15:22.773586753 -0800
@@ -608,7 +608,7 @@ vmxnet3_set_rss_indir(struct net_device
 }
 #endif
 
-static struct ethtool_ops vmxnet3_ethtool_ops = {
+static const struct ethtool_ops vmxnet3_ethtool_ops = {
 	.get_settings      = vmxnet3_get_settings,
 	.get_drvinfo       = vmxnet3_get_drvinfo,
 	.get_regs_len      = vmxnet3_get_regs_len,
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ