Bug 755676 - SELinux: Could not open policy file
Summary: SELinux: Could not open policy file
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-21 18:12 UTC by Sergei LITVINENKO
Modified: 2012-07-03 10:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-29 02:31:53 UTC
Type: ---


Attachments (Terms of Use)

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.


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