summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-02-15 17:34:39 +0000
committerOlivier Blin <oblin@mandriva.org>2005-02-15 17:34:39 +0000
commit8fcf34c2418c0946215f67500793af17f4d886cb (patch)
tree36b92087c48239380b7c879f90528402153c1fa2
parent26e4db4a9e93da3cb10c834bb42fec417d5c2de3 (diff)
downloaddrakx-8fcf34c2418c0946215f67500793af17f4d886cb.tar
drakx-8fcf34c2418c0946215f67500793af17f4d886cb.tar.gz
drakx-8fcf34c2418c0946215f67500793af17f4d886cb.tar.bz2
drakx-8fcf34c2418c0946215f67500793af17f4d886cb.tar.xz
drakx-8fcf34c2418c0946215f67500793af17f4d886cb.zip
add unblacklist
-rw-r--r--perl-install/network/activefw.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/network/activefw.pm b/perl-install/network/activefw.pm
index a62b00c07..a06cfe392 100644
--- a/perl-install/network/activefw.pm
+++ b/perl-install/network/activefw.pm
@@ -74,6 +74,17 @@ sub blacklist {
}
}
+sub unblacklist {
+ my ($o, $addr) = @_;
+ eval {
+ $o->{daemon}->UnBlacklist(Net::DBus::Binding::Value->new(&Net::DBus::Binding::Message::TYPE_UINT32, $addr));
+ };
+ if ($@) {
+ print "(Blacklist) exception: $@\n";
+ $o->dispatch;
+ }
+}
+
sub set_interactive {
my ($o, $mode) = @_;
print "setting new IDS mode: $mode\n";