Bug 1144770

Summary: [abrt] policycoreutils-gui: statusPage.py:162:write_selinux_config:IOError: [Errno 13] Permission denied: '/etc/selinux/config.bck'
Product: [Fedora] Fedora Reporter: Moez Roy <moez.roy>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/388f250c52c3bbd12d285f50a35fd636b8391bed
Whiteboard: abrt_hash:5c92132bf6b6a93e5c7e901ae284d6bbc49f7f73
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-22 08:44:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Moez Roy 2014-09-20 15:22:05 UTC
Version-Release number of selected component:
policycoreutils-gui-2.3-7.1.fc21

Additional info:
reporter:       libreport-2.2.3
cmdline:        /usr/bin/python -Es /usr/share/system-config-selinux/system-config-selinux.py
executable:     /usr/share/system-config-selinux/system-config-selinux.py
kernel:         3.16.3-300.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
statusPage.py:162:write_selinux_config:IOError: [Errno 13] Permission denied: '/etc/selinux/config.bck'

Traceback (most recent call last):
  File "/usr/share/system-config-selinux/statusPage.py", line 153, in enabled_changed
    self.write_selinux_config(modearray[enabled], setype )
  File "/usr/share/system-config-selinux/statusPage.py", line 162, in write_selinux_config
    fd = open(backup_path, "w")
IOError: [Errno 13] Permission denied: '/etc/selinux/config.bck'

Local variables in innermost frame:
backup_path: '/etc/selinux/config.bck'
enforcing: 'enforcing'
lines: ['\n', '# This file controls the state of SELinux on the system.\n', '# SELINUX= can take one of these three values:\n', '#     enforcing - SELinux security policy is enforced.\n', '#     permissive - SELinux prints warnings instead of enforcing.\n', '#     disabled - No SELinux policy is loaded.\n', 'SELINUX=permissive\n', '# SELINUXTYPE= can take one of these three values:\n', '#     targeted - Targeted processes are protected,\n', '#     minimum - Modification of targeted policy. Only selected processes are protected. \n', '#     mls - Multi Level Security protection.\n', 'SELINUXTYPE=targeted\n', '\n', '\n']
setype: 'targeted'
fd: <closed file '/etc/selinux/config', mode 'r' at 0x7f8dc35ab660>
path: '/etc/selinux/config'
self: <statusPage.statusPage instance at 0x7f8dc245c908>

Comment 1 Moez Roy 2014-09-20 15:22:07 UTC
Created attachment 939574 [details]
File: backtrace

Comment 2 Moez Roy 2014-09-20 15:22:08 UTC
Created attachment 939575 [details]
File: environ

Comment 3 Miroslav Grepl 2014-09-22 08:44:54 UTC

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