Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
policyd
policyd
Commits
1f787508
Commit
1f787508
authored
Dec 17, 2009
by
Nigel Kukard
Browse files
* Tagged v2.0.10 release
parent
5c4814be
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
0 → 100644
View file @
1f787508
This diff is collapsed.
Click to expand it.
cbp/modules/Greylisting.pm
View file @
1f787508
...
...
@@ -436,18 +436,16 @@ sub check {
# Check if we already have an expired autoblacklist entry, this happens if the cleanup has not run yet
if
(
defined
(
$currentAutoBlacklistEntry
))
{
# Update blacklisting to the new details
$sth
=
DBDo
(
'
$sth
=
DBDo
(
"
UPDATE
greylisting_autoblacklist
SET
TrackKey =
?
,
Added =
?
,
Comment =
?
TrackKey =
"
.
DBQuote
(
$key
)
.
"
,
Added =
"
.
DBQuote
(
$sessionData
->
{'
Timestamp
'})
.
"
,
Comment =
"
.
DBQuote
(
$blacklist
)
.
"
WHERE
ID = ?
',
$key
,
$sessionData
->
{'
Timestamp
'},
$blacklist
,
$currentAutoBlacklistEntry
);
ID =
"
.
DBQuote
(
$currentAutoBlacklistEntry
)
.
"
");
if
(
!
$sth
)
{
$server
->
log
(
LOG_ERR
,"
[GREYLISTING] Database update failed:
"
.
cbp::dblayer::
Error
());
return
$server
->
protocol_response
(
PROTO_DB_ERROR
);
...
...
@@ -455,14 +453,16 @@ sub check {
# If we don't have an entry we can use, create one
}
else
{
# Record blacklisting
$sth
=
DBDo
(
'
$sth
=
DBDo
(
"
INSERT INTO greylisting_autoblacklist
(TrackKey,Added,Comment)
VALUES
(?,?,?)
',
$key
,
$sessionData
->
{'
Timestamp
'},
$blacklist
);
(
"
.
DBQuote
(
$key
)
.
"
,
"
.
DBQuote
(
$sessionData
->
{'
Timestamp
'})
.
"
,
"
.
DBQuote
(
$blacklist
)
.
"
)
");
if
(
!
$sth
)
{
$server
->
log
(
LOG_ERR
,"
[GREYLISTING] Database insert failed:
"
.
cbp::dblayer::
Error
());
return
$server
->
protocol_response
(
PROTO_DB_ERROR
);
...
...
@@ -671,33 +671,34 @@ sub check {
# Check if we already have an expired autowhitelist entry, this happens if the cleanup has not run yet
if
(
defined
(
$currentAutoWhitelistEntry
))
{
# Update whitelisting to the new details
$sth
=
DBDo
(
'
$sth
=
DBDo
(
"
UPDATE
greylisting_autowhitelist
SET
TrackKey =
?
,
Added =
?
,
LastSeen =
?
,
Comment =
?
TrackKey =
"
.
DBQuote
(
$key
)
.
"
,
Added =
"
.
DBQuote
(
$sessionData
->
{'
Timestamp
'})
.
"
,
LastSeen =
"
.
DBQuote
(
$sessionData
->
{'
Timestamp
'})
.
"
,
Comment =
"
.
DBQuote
(
$whitelist
)
.
"
WHERE
ID = ?
',
$key
,
$sessionData
->
{'
Timestamp
'},
$sessionData
->
{'
Timestamp
'},
$whitelist
,
$currentAutoWhitelistEntry
);
ID =
"
.
DBQuote
(
$currentAutoWhitelistEntry
)
.
"
");
if
(
!
$sth
)
{
$server
->
log
(
LOG_ERR
,"
[GREYLISTING] Database update failed:
"
.
cbp::dblayer::
Error
());
return
$server
->
protocol_response
(
PROTO_DB_ERROR
);
}
}
else
{
# Update whitelisting to the new details
$sth
=
DBDo
(
'
$sth
=
DBDo
(
"
INSERT INTO greylisting_autowhitelist
(TrackKey,Added,LastSeen,Comment)
VALUES
(?,?,?,?)
',
$key
,
$sessionData
->
{'
Timestamp
'},
$sessionData
->
{'
Timestamp
'},
$whitelist
);
(
"
.
DBQuote
(
$key
)
.
"
,
"
.
DBQuote
(
$sessionData
->
{'
Timestamp
'})
.
"
,
"
.
DBQuote
(
$sessionData
->
{'
Timestamp
'})
.
"
,
"
.
DBQuote
(
$whitelist
)
.
"
)
");
if
(
!
$sth
)
{
$server
->
log
(
LOG_ERR
,"
[GREYLISTING] Database insert failed:
"
.
cbp::dblayer::
Error
());
return
$server
->
protocol_response
(
PROTO_DB_ERROR
);
...
...
cbp/version.pm
View file @
1f787508
...
...
@@ -34,7 +34,7 @@ our (@ISA,@EXPORT,@EXPORT_OK);
use
constant
{
VERSION
=>
"
2.0.10
a
",
VERSION
=>
"
2.0.10
",
};
# vim: ts=4
...
...
cluebringer.spec
View file @
1f787508
...
...
@@ -2,7 +2,7 @@
# this path is hardcoded
%define cblibdir %{_libdir}/policyd-2.0
%define version 2.0.10
a
%define version 2.0.10
%define release 1
%define tarver %{version}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment