gharris999;340291 Wrote: 
> Anyway...if the consensus is that I should make this feature REALLY
> optional (rather than exclude it altogether)...
> 
> What's the equivalent in perl code of the C
> 
> #ifdef
> #else
> #endif
> 
> ..preprocessor pragmas?  Is there an easy way to exclude this code from
> getting checked and compiled by the perl interpreter at run time?


Code:
--------------------
    
  # at the top of Plugin.pm
  my $supportAutoSCUpdate = 0; # change this to 1 to allow auto-update
  
  # wherever needed
  if ( $supportAutoSCUpdate == 1 ) {
  # your code
  }
  
--------------------

Your MITM understanding is pretty much right-on-target. But having
their systems check frequently (what else is the point of auto=updating
to a *nightly* release?) just gives attackers 365.25 opportunities a
year.

SSH hole: 1) you should be able to specify your IP address as the
allowed source, or at least some range of IPs that will keep most
attackers out (letting all of New Mexico attack your friends beats
letting the entire world try) 2) you should disallow remote ssh as user
root, and use either a good passphrase for your userid or keypair auth
to gain access.


-- 
peterw

http://www.tux.org/~peterw/
free plugins: http://www.tux.org/~peterw/#slim
AllQuiet BlankSaver ContextMenu FuzzyTime 
KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher
SettingsManager SleepFade StatusFirst SyncOptions VolumeLock
------------------------------------------------------------------------
peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=52547

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to