Bug 767654 - [abrt] firewalld-0.1.3-3.fc16: logger.py:117:open:IOError: [Errno 13] Permission denied: '/var/log/firewalld'
Summary: [abrt] firewalld-0.1.3-3.fc16: logger.py:117:open:IOError: [Errno 13] Permiss...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: firewalld
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e374b508ab2d5a0585c8a77c899...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-14 15:44 UTC by James Cape
Modified: 2012-04-24 04:26 UTC (History)
1 user (show)

Fixed In Version: firewalld-0.2.5-1.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-19 08:01:24 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.