Bug 755676

Summary: SELinux: Could not open policy file
Product: [Fedora] Fedora Reporter: Sergei LITVINENKO <sergei.litvinenko>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED WORKSFORME QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dwalsh, pebolle, sergei.litvinenko
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-29 02:31:53 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 Sergei LITVINENKO 2011-11-21 18:12:31 UTC
Description of problem:

selinux-policy-targeted-3.10.0-56.fc16.noarch.rpm  | 3.5 MB  00:01
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : selinux-policy-targeted-3.10.0-56.fc16.noarch       1/1 
SELinux:  Could not downgrade policy file /etc/selinux/targeted/policy/policy.26, searching for an older version.
SELinux:  Could not open policy file <= /etc/selinux/targeted/policy/policy.26:  No such file or directory
load_policy:  Can't load policy:  No such file or directory

Installed:
  selinux-policy-targeted.noarch 0:3.10.0-56.fc16


Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.10.0-56.fc16.noarch

How reproducible:
100%

Steps to Reproduce:
1. yum update
2.
3.
  
Actual results:
selinux is not able to use policy

Expected results:
selinux use policy

Additional info:

Comment 1 Miroslav Grepl 2011-11-21 18:18:59 UTC
what does

# sestatus

Comment 2 Sergei LITVINENKO 2011-11-21 20:31:34 UTC
hm ... After selinux re-enabling (disable, reboot, enable, reboot, re-labeling), update is OK
---

[root@ua-dudn00000 ~]# yum reinstall selinux-policy selinux-policy-targeted
...
Running Transaction
  Installing : selinux-policy-3.10.0-56.fc16.noarch           1/2 
  Installing : selinux-policy-targeted-3.10.0-56.fc16.noarch  2/2

Installed:
selinux-policy.noarch 0:3.10.0-56.fc16 selinux-policy-targeted.noarch-0:3.10.0-56.fc16                                   

Complete!
---

PS: Sorry...

Comment 3 Daniel Walsh 2011-11-21 23:08:28 UTC
And does it work now?

Comment 4 Sergei LITVINENKO 2011-11-25 20:46:49 UTC
>> And does it work now?
Like work...

[root@homedesk ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
Current mode:                   permissive
Mode from config file:          permissive
Policy version:                 26
Policy from config file:        targeted

In any case I do not see unexpected messages ...
Also, I do not do unexpected operations

Comment 5 Daniel Walsh 2011-11-29 02:31:53 UTC
Ok it looks like it is ok now.

I do not know what went wrong.  Reopen if it happens again.