Changeset 1488
- Timestamp:
- 04/08/08 15:14:41 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/kindlund-simpler_agent/lib/HoneyClient/Manager/VM/Clone.pm
r1486 r1488 859 859 # Warn if no valid fingerprint is supplied. 860 860 $LOG->warn("(" . $self->{'name'} . ") - No valid fingerprint found."); 861 Carp::carp "(" . $self->{'name'} . ") - No valid fingerprint found.";861 Carp::carp __PACKAGE__ . "->_changeStatus(): (" . $self->{'name'} . ") - No valid fingerprint found."; 862 862 863 863 # Mark the VM as suspicious, manually. … … 1240 1240 $self->{'_fw_handle'} = getClientHandle(namespace => "HoneyClient::Manager::FW"); 1241 1241 1242 # TODO: Fix this, eventually. 1243 $LOG->info("Installing default firewall rules."); 1244 # XXX: Currently, faults get propagated -- is this okay? 1245 $self->{'_fw_handle'}->installDefaultRules(); 1242 # Install the default firewall rules only if we're being called by code 1243 # other than HoneyClient::Manager or by ourselves. 1244 if (($caller ne __PACKAGE__) && ($caller ne "HoneyClient::Manager")) { 1245 $LOG->info("Installing default firewall rules."); 1246 # XXX: Currently, faults get propagated -- is this okay? 1247 $self->{'_fw_handle'}->installDefaultRules(); 1248 } 1246 1249 1247 1250 # Determine if the firewall needs to be bypassed. … … 1661 1664 } 1662 1665 1663 # TODO: Add more error handling?1664 1665 1666 return $self; 1666 1667 }
