http://qa.mandrakesoft.com/show_bug.cgi?id=4629
[EMAIL PROTECTED] changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |FIXED
------- Additional Comments From [EMAIL PROTECTED] 2003-22-08 19:19 -------
Fixed in 0.39 but you need to fix sysctl.conf by hand to go back to 0 and 1
instead of True and False.
--
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: RESOLVED
creation_date:
description:
In libmsec.py, set_zero_one_variable() can't handle "True" or "False" values
from /etc/sysctl.conf
See the attached patch for a possible solution.
For example, with this line in /etc/sysctl.conf :
net.ipv4.icmp_ignore_bogus_error_responses=False
msec dies with a ValueError exception :
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
apply(f[0], f[1])
File "/usr/share/msec/libmsec.py", line 899, 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 820, in set_zero_one_variable
val=int(val)
ValueError: invalid literal for int(): False