Bug 114040

Summary: rpm does not install file contexts if file_contexts/file_contexts file missing.
Product: [Fedora] Fedora Reporter: Daniel Walsh <dwalsh>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 1CC: herrold, john
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-02-16 03:47:10 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:

Description Daniel Walsh 2004-01-21 19:35:44 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115

Description of problem:
  Current status on a
machine here running rawhide (rpm-4.3-0.7.1) is that:
- rpm -Uvh foo.rpm will try to determine file contexts from
/etc/security/selinux/src/policy/file_contexts/file_contexts if it
exists and apply them in that case.
- otherwise, rpm doesn't appear to set file contexts, even if they are
included in the header,


Version-Release number of selected component (if applicable):
rpm-4.3-0.7.1

How reproducible:
Always

Steps to Reproduce:
1.get a package including file_contexts
2.remove /etc/security/selinux/src/policy/file_contexts/file_contexts
3.rpm install
    

Actual Results:  Gets default contexts

Expected Results:  Gets correct context.

Additional info:

Comment 1 Jeff Johnson 2004-01-26 03:16:22 UTC
*** Bug 113512 has been marked as a duplicate of this bug. ***

Comment 2 Jeff Johnson 2004-02-16 03:47:10 UTC
FIxed in CVS, will be in rpm-4.3-0.11 when built.