Setlocale errors with guarddog-generated rc.firewall

Bug #435144 reported by Joseph Wakeling
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
guarddog (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: guarddog

At boot, and whenever trying to manually regenerate the firewall script (i.e. opening up Guarddog and clicking 'apply'), I get the following errors:

Setting kernel parameters.
/tmp/kde-root/guarddog2J8Bab.tmp: line 485: warning: setlocale: LC_ALL: cannot change locale (US)
Configuring firewall rules.
/tmp/kde-root/guarddog2J8Bab.tmp: line 557: warning: setlocale: LC_ALL: cannot change locale (US)
/tmp/kde-root/guarddog2J8Bab.tmp: line 601: warning: setlocale: LC_ALL: cannot change locale (US)

Unsure how to interpret these since I'm not used to setting firewall rules.

Beyond that, my actual locale is going to be the UK (GB) or Switzerland (not sure how to check). So why is Guarddog trying to set it to the US? :-P

Marking this bug as a security vulnerability since it affects firewall.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

security vulnerability: yes → no
visibility: private → public
Revision history for this message
Joseph Wakeling (webdrake) wrote : Re: [Bug 435144] Re: Setlocale errors with guarddog-generated rc.firewall

Marc -- thanks for confirming this is not a security vulnerability.
Sorry for the unnecessary flag. I'm not experienced with what makes a
firewall work or not so thought it best to be cautious.

Revision history for this message
GS2 (thefoghornleghorn) wrote :

The Script that guarddog generates is trying to set LC_ALL = US , I think it should be en_US
  (as US is not a valid locale). Is it possible the packager can fix this ?

Revision history for this message
Epson (epson-deactivatedaccount) wrote :

I get this error also

Revision history for this message
Epson (epson-deactivatedaccount) wrote :

I get this error when doing the following:

sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces... /etc/rc.firewall: line 414: warning: setlocale: LC_ALL: cannot change locale (US)
/etc/rc.firewall: line 486: warning: setlocale: LC_ALL: cannot change locale (US)
/etc/rc.firewall: line 530: warning: setlocale: LC_ALL: cannot change locale (US)
There is already a pid file /var/run/dhclient.eth0.pid with pid 3028
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:24:01:00:01:ef
Sending on LPF/eth0/00:24:01:00:01:ef
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.2.1 port 67
send_packet: Operation not permitted
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:24:01:00:01:ef
Sending on LPF/eth0/00:24:01:00:01:ef
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER of 192.168.2.101 from 192.168.2.1
DHCPREQUEST of 192.168.2.101 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.2.101 from 192.168.2.1
bound to 192.168.2.101 -- renewal in 42717 seconds.
/etc/rc.firewall: line 414: warning: setlocale: LC_ALL: cannot change locale (US)
/etc/rc.firewall: line 486: warning: setlocale: LC_ALL: cannot change locale (US)
/etc/rc.firewall: line 530: warning: setlocale: LC_ALL: cannot change locale (US)
ssh stop/waiting
ssh start/running, process 4046

Revision history for this message
Epson (epson-deactivatedaccount) wrote :

When doing the locale command I see:

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.