Bug 767654

Summary: [abrt] firewalld-0.1.3-3.fc16: logger.py:117:open:IOError: [Errno 13] Permission denied: '/var/log/firewalld'
Product: [Fedora] Fedora Reporter: James Cape <jamescape777>
Component: firewalldAssignee: Thomas Woerner <twoerner>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: twoerner
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e374b508ab2d5a0585c8a77c8992adc49631c734
Fixed In Version: firewalld-0.2.5-1.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-19 08:01:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description James Cape 2011-12-14 15:44:16 UTC
libreport version: 2.0.7
abrt_version:   2.0.6
cmdline:        /usr/bin/python /usr/sbin/firewalld --help
comment:        Trying to run "firewalld --help" as a normal user when it was already running in the background.
executable:     /usr/sbin/firewalld
kernel:         3.1.5-1.fc16.x86_64
reason:         logger.py:117:open:IOError: [Errno 13] Permission denied: '/var/log/firewalld'
time:           Wed 14 Dec 2011 09:40:18 AM EST
uid:            628000003
username:       james.cape

backtrace:
:logger.py:117:open:IOError: [Errno 13] Permission denied: '/var/log/firewalld'
:
:Traceback (most recent call last):
:  File "/usr/sbin/firewalld", line 74, in <module>
:    log.fatal(_("Not starting FirewallD, already running."))
:  File "/usr/share/firewalld/logger.py", line 407, in fatal
:    self._log(self.FATAL, format, *args, **kwargs)
:  File "/usr/share/firewalld/logger.py", line 681, in _log
:    target.write(_format % dict, level, self, is_debug)
:  File "/usr/share/firewalld/logger.py", line 121, in write
:    self.open()
:  File "/usr/share/firewalld/logger.py", line 117, in open
:    self.fd = open(self.filename, self.mode)
:IOError: [Errno 13] Permission denied: '/var/log/firewalld'
:
:Local variables in innermost frame:
:self: <logger.FileLog instance at 0x7f3ddf9a8e60>

Comment 1 Thomas Woerner 2011-12-14 15:56:52 UTC
Is there a /var/log/firewalld file?
Which permissions does it have?
Is the SELinux context of the file ok? You can fix the context with "restorecon /var/log/firewalld".

Comment 2 Thomas Woerner 2011-12-14 15:58:18 UTC

*** This bug has been marked as a duplicate of bug 758056 ***

Comment 3 James Cape 2011-12-14 16:22:25 UTC
This is not a dupe of that bug, please read the comment I sent.

I'm running "firewalld --help" as an unprivileged user.

There is no /var/log/firewalld file, no, and that user shouldn't have permission to access it anyway.

It should process it's arguments first, and output the relevant usage information since "--help" shouldn't require elevated permissions at all.

Comment 4 Thomas Woerner 2011-12-14 17:17:32 UTC
ok.. there is a missing check for root... have not seen this one

Comment 5 Thomas Woerner 2012-04-19 08:01:24 UTC
This will be fixed in the next F-17 package of firewalld.

Comment 6 Fedora Update System 2012-04-20 19:54:36 UTC
firewalld-0.2.5-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/firewalld-0.2.5-1.fc17

Comment 7 Fedora Update System 2012-04-24 04:26:36 UTC
firewalld-0.2.5-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.