Bug 911364

Summary: [abrt] policycoreutils-python-2.1.13-55.fc18: __init__.py:65:<module>:ValueError: Failed to read /sys/fs/selinux/policy policy file
Product: [Fedora] Fedora Reporter: dobs <webmaster>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 18CC: dwalsh, knesenko, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:79c3b497b0819400098d3c5a7588912c9b95525b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-11 19:50:11 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: core_backtrace
none
File: environ
none
File: smolt_data none

Description dobs 2013-02-14 20:38:44 UTC
Version-Release number of selected component:
policycoreutils-python-2.1.13-55.fc18

Additional info:
cmdline:        /usr/bin/python -Es /usr/sbin/semanage fcontext -a -t home_cert_t ca.crt
executable:     /usr/sbin/semanage
kernel:         3.3.4-5.fc17.x86_64
uid:            0

Comment 1 dobs 2013-02-14 20:38:47 UTC
Created attachment 697378 [details]
File: backtrace

Comment 2 dobs 2013-02-14 20:38:49 UTC
Created attachment 697379 [details]
File: core_backtrace

Comment 3 dobs 2013-02-14 20:38:51 UTC
Created attachment 697380 [details]
File: environ

Comment 4 dobs 2013-02-14 20:38:53 UTC
Created attachment 697381 [details]
File: smolt_data

Comment 5 Daniel Walsh 2013-02-18 17:02:58 UTC
Does  /sys/fs/selinux/current exist?

Comment 6 Kiril Nesenko 2013-03-12 14:11:36 UTC
I Have the same issue on Fedora18:

sudo ls -ld /sys/fs/selinux/current
ls: cannot access /sys/fs/selinux/current: No such file or directory

sudo semanage port -l
ERROR: policydb magic number 0x000008 does not match expected magic number 0xf97cff8c or 0xf97cff8d
ERROR: Unable to open policy /sys/fs/selinux/policy.
Traceback (most recent call last):
  File "/sbin/semanage", line 25, in <module>
    import seobject
  File "/usr/lib64/python2.7/site-packages/seobject.py", line 27, 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 7 Daniel Walsh 2013-03-15 18:32:29 UTC
SELinux disabled?

DOes this work with 
policycoreutils-2.1.13-57.fc18

in updates-testing?

Comment 8 Kiril Nesenko 2013-03-17 09:15:05 UTC
(In reply to comment #7)
> SELinux disabled?
> 
> DOes this work with 
> policycoreutils-2.1.13-57.fc18

From where can I get this version ? Its not in F18 repo.
> 
> in updates-testing?

Comment 9 Kiril Nesenko 2013-03-17 09:16:05 UTC
Selinux is in enforcing status

Comment 10 Daniel Walsh 2013-03-20 01:20:48 UTC
https://admin.fedoraproject.org/updates/FEDORA-2013-3271/policycoreutils-2.1.13-56.fc18?_csrf_token=8c9e44f7f7aebb6afd61bb36970b12b83aa40572

It should be being pushed to release

yum -y update policycoreutils --enablerepo=updates-testing