Bug 143224

Summary: rpm emits file_context errors with latest selinux-policy-targeted
Product: [Fedora] Fedora Reporter: Joe Orton <jorton>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 23:28:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Joe Orton 2004-12-17 16:24:38 UTC
An updated FC3 system, selinux-policy-targeted-1.17.30-2.51, any rpm
-V command gives errors:

# rpm -V mod_ssl
/etc/selinux/targeted/contexts/files/file_contexts:  invalid context
system_u:object_r:xconsole_device_t on line number 141
/etc/selinux/targeted/contexts/files/file_contexts:  invalid context
system_u:object_r:power_device_t on line number 223
/etc/selinux/targeted/contexts/files/file_contexts:  invalid context
system_u:object_r:squirrelmail_spool_t on line number 554
/etc/selinux/targeted/contexts/files/file_contexts:  invalid context
system_u:object_r:winbind_exec_t on line number 781
...

Comment 1 Daniel Walsh 2004-12-17 17:00:27 UTC
You need to reload policy.

make -C  /etc/selinux/targeted/src/policy reload


Comment 2 Joe Orton 2005-01-05 12:11:49 UTC
I shouldn't need to, I hadn't *changed* the policy.  I guess this was
an artefact of the -sources package reloading the policy when it
shouldn't - I removed -sources and renamed policy.18.rpmnew over
policy.18 and it's OK now.