]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
netfilter: xt_recent: allow changing ip_list_[ug]id at runtime
authorJan Engelhardt <jengelh@medozas.de>
Fri, 19 Mar 2010 20:29:08 +0000 (21:29 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 25 Mar 2010 14:02:20 +0000 (15:02 +0100)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
net/netfilter/xt_recent.c

index 72cbced48a8dde099faf6617f4ff268bd1969fa7..85309448c5e73ba917ce7fa0d098ded3a432443c 100644 (file)
@@ -51,14 +51,14 @@ module_param(ip_list_tot, uint, 0400);
 module_param(ip_pkt_list_tot, uint, 0400);
 module_param(ip_list_hash_size, uint, 0400);
 module_param(ip_list_perms, uint, 0400);
-module_param(ip_list_uid, uint, 0400);
-module_param(ip_list_gid, uint, 0400);
+module_param(ip_list_uid, uint, S_IRUGO | S_IWUSR);
+module_param(ip_list_gid, uint, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(ip_list_tot, "number of IPs to remember per list");
 MODULE_PARM_DESC(ip_pkt_list_tot, "number of packets per IP address to remember (max. 255)");
 MODULE_PARM_DESC(ip_list_hash_size, "size of hash table used to look up IPs");
 MODULE_PARM_DESC(ip_list_perms, "permissions on /proc/net/xt_recent/* files");
-MODULE_PARM_DESC(ip_list_uid,"owner of /proc/net/xt_recent/* files");
-MODULE_PARM_DESC(ip_list_gid,"owning group of /proc/net/xt_recent/* files");
+MODULE_PARM_DESC(ip_list_uid, "default owner of /proc/net/xt_recent/* files");
+MODULE_PARM_DESC(ip_list_gid, "default owning group of /proc/net/xt_recent/* files");
 
 struct recent_entry {
        struct list_head        list;