OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[discuss] Somehow, I broke the msec script

From: Robin Lynn Frank (rlfrankparadigm-omega.com)
Date: Wed Mar 24 2004 - 11:45:50 CST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On one of our 9.1 boxes, I used the MDK control panel to raise the security
level from high to higher (to see if we could live with the added
restrictions).

It didn't work out so I attempted to move it back down to high. It wouldn't.

I went to the command line and got the results below:

# msec 3
Traceback (most recent call last):
  File "/usr/share/msec/msec.py", line 266, in ?
    commit_changes()
  File "/usr/share/msec/mseclib.py", line 24, in commit_changes
    f[0](*f[1])
  File "/usr/share/msec/libmsec.py", line 908, in accept_bogus_error_responses
    set_zero_one_variable(SYSCTLCONF,
'net.ipv4.icmp_ignore_bogus_error_responses', not arg, 1, 'Ignoring bogus
icmp error responses', 'Accepting bogus icmp error responses')
  File "/usr/share/msec/libmsec.py", line 833, in set_zero_one_variable
    val = int(val)
ValueError: invalid literal for int(): True

Python has never been one of my skills. Anyone have any ideas as to what the
problem might be?

TIA
- --
Robin Lynn Frank
Director of Operations, Paradigm-Omega, LLC
============================================================
Someone said:
 Outsource jobs overseas...CEOs first!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.5 (GNU/Linux)

iD8DBQFAYclbzXwq4t8X1KoRAr4EAKCkBy9gqnCJ2Llw2Zj1/l/03PRsjwCgnCUZ
/xI8ep3h15v4xfDGaWp1TpQ=
=zLZ/
-----END PGP SIGNATURE-----