Skip to contentSkip to conversation

netfiler: remove the write permission of nf_conntrack/acct

PATCH New Changli Gao 1 participant 1 message Nov 6, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netfiler: remove the write permission of nf_conntrack/acct

remove write permission of nf_conntrack/acct

This option only works when initialization.

----
net/netfilter/nf_conntrack_acct.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nf_conntrack_acct.c renamed from net/netfilter/nf_conntrack_acct.c.orig +1 -1
@@ -20,7 +20,7 @@
 
 static int nf_ct_acct __read_mostly = NF_CT_ACCT_DEFAULT;
 
-module_param_named(acct, nf_ct_acct, bool, 0644);
+module_param_named(acct, nf_ct_acct, bool, 0444);
 MODULE_PARM_DESC(acct, "Enable connection tracking flow accounting.");
 
 #ifdef CONFIG_SYSCTL