Bug 892265 - [abrt] policycoreutils-gui-2.1.13-52.fc19: __init__.py:54:policy:ValueError: Failed to read /sys/fs/selinux/policy policy file
Summary: [abrt] policycoreutils-gui-2.1.13-52.fc19: __init__.py:54:policy:ValueError: ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: rawhide
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:325191d26420e8a26e3d6a6aa07...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-06 08:06 UTC by Frank Murphy
Modified: 2013-01-15 02:11 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-15 02:11:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
bz screencap has selinux error on toolbar (35.71 KB, image/png)
2013-01-06 08:18 UTC, Frank Murphy
no flags Details
recreated with logger (2.25 KB, text/plain)
2013-01-06 08:38 UTC, Frank Murphy
no flags Details

Description Frank Murphy 2013-01-06 08:06:44 UTC
Description of problem:
Clicked on the "Selinux Management" icon, entered root password, then abrt crash.
Machine was started with enforcing=0 on kernel line due to:
https://lists.fedoraproject.org/pipermail/test/2013-January/112986.html

Version-Release number of selected component:
policycoreutils-gui-2.1.13-52.fc19

Additional info:
cmdline:        /usr/bin/python -Es /usr/share/system-config-selinux/system-config-selinux.py
dso_list:       policycoreutils-python-2.1.13-52.fc19.i686
executable:     /usr/share/system-config-selinux/system-config-selinux.py
kernel:         3.7.0-2.fc19.i686
uid:            0

Truncated backtrace:
__init__.py:54:policy:ValueError: Failed to read /sys/fs/selinux/policy policy file

Traceback (most recent call last):
  File "/usr/share/system-config-selinux/system-config-selinux.py", line 38, in <module>
    import booleansPage
  File "/usr/share/system-config-selinux/booleansPage.py", line 28, in <module>
    import seobject
  File "/usr/lib/python2.7/site-packages/seobject.py", line 27, in <module>
    import sepolicy
  File "/usr/lib/python2.7/site-packages/sepolicy/__init__.py", line 61, in <module>
    policy(policy_file)
  File "/usr/lib/python2.7/site-packages/sepolicy/__init__.py", line 54, in policy
    raise ValueError(_("Failed to read %s policy file") % policy_file)
ValueError: Failed to read /sys/fs/selinux/policy policy file

Local variables in innermost frame:
policy_file: '/sys/fs/selinux/policy'

Comment 1 Frank Murphy 2013-01-06 08:18:52 UTC
Created attachment 673298 [details]
bz screencap has selinux error on toolbar

Comment 2 Frank Murphy 2013-01-06 08:38:57 UTC
Created attachment 673300 [details]
recreated with logger

Comment 3 Frank Murphy 2013-01-06 09:34:07 UTC
/sbin/restorecon -v /sys/fs/selinux hasn't helped, tried just in case.

Comment 4 Rick Elrod 2013-01-14 02:47:21 UTC
Seeing this with sandbox, too.

$ sandbox -M bash
ERROR: policydb version 28 does not match my version range 15-27
ERROR: Unable to open policy /sys/fs/selinux/policy.
Traceback (most recent call last):
  File "/usr/bin/sandbox", line 29, in <module>
    import sepolicy
  File "/usr/lib64/python2.7/site-packages/sepolicy/__init__.py", line 65, in <module>
    raise e
ValueError: Failed to read /sys/fs/selinux/policy policy file

Comment 5 Daniel Walsh 2013-01-15 02:11:08 UTC
Should be fixed in policycoreutils-2.1.13-54.fc19


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