forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NETFILTER]: Fix module_param types and permissions
Fix netfilter module_param types and permissions. Also fix an off-by-one in the ipt_ULOG nlbufsiz < 128k check. Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
Showing
7 changed files
with
22 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ static unsigned int master_timeout = 300; | |
MODULE_AUTHOR("Brian J. Murrell <[email protected]>"); | ||
MODULE_DESCRIPTION("Amanda connection tracking module"); | ||
MODULE_LICENSE("GPL"); | ||
module_param(master_timeout, int, 0600); | ||
module_param(master_timeout, uint, 0600); | ||
MODULE_PARM_DESC(master_timeout, "timeout for the master connection"); | ||
|
||
static const char *conns[] = { "DATA ", "MESG ", "INDEX " }; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,10 @@ | |
#define HASH_LOG 9 | ||
|
||
/* Defaults, these can be overridden on the module command-line. */ | ||
static int ip_list_tot = 100; | ||
static int ip_pkt_list_tot = 20; | ||
static int ip_list_hash_size = 0; | ||
static int ip_list_perms = 0644; | ||
static unsigned int ip_list_tot = 100; | ||
static unsigned int ip_pkt_list_tot = 20; | ||
static unsigned int ip_list_hash_size = 0; | ||
static unsigned int ip_list_perms = 0644; | ||
#ifdef DEBUG | ||
static int debug = 1; | ||
#endif | ||
|
@@ -38,13 +38,13 @@ KERN_INFO RECENT_NAME " " RECENT_VER ": Stephen Frost <[email protected]>. htt | |
MODULE_AUTHOR("Stephen Frost <[email protected]>"); | ||
MODULE_DESCRIPTION("IP tables recently seen matching module " RECENT_VER); | ||
MODULE_LICENSE("GPL"); | ||
module_param(ip_list_tot, int, 0400); | ||
module_param(ip_pkt_list_tot, int, 0400); | ||
module_param(ip_list_hash_size, int, 0400); | ||
module_param(ip_list_perms, int, 0400); | ||
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); | ||
#ifdef DEBUG | ||
module_param(debug, int, 0600); | ||
MODULE_PARM_DESC(debug,"debugging level, defaults to 1"); | ||
module_param(debug, bool, 0600); | ||
MODULE_PARM_DESC(debug,"enable debugging output"); | ||
#endif | ||
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 to remember"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters