Bug 1054851

Summary: SELinux is preventing rpm scriplets from executing
Product: [Fedora] Fedora Reporter: Andy Wang <dopey>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dwalsh
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: 2014-01-17 15:29:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andy Wang 2014-01-17 15:28:37 UTC
Description of problem:
selinux is causing many issues executing rpm scriptlets
It appears to only occur on systems where /var/ is a separate filesystem (something to do with executing the scripts that get written to /var/tmp?)

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.12.1-116.fc20.noarch

How reproducible:
Always

Steps to Reproduce:
1. configure a system with /var as a separate filesystem
2. setenforce enforcing
3. yum reinstall nfs-utils

Actual results:
Downloading packages:
nfs-utils-1.2.9-2.1.fc20.x86_64.rpm                        | 356 kB   00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
error: %pre(nfs-utils-1:1.2.9-2.1.fc20.x86_64) scriptlet failed, exit status 127
Error in PREIN scriptlet in rpm package 1:nfs-utils-1.2.9-2.1.fc20.x86_64
  Verifying  : 1:nfs-utils-1.2.9-2.1.fc20.x86_64                            1/1 

Failed:
  nfs-utils.x86_64 1:1.2.9-2.1.fc20                                             

Complete!

Expected results:
with setenfoce permissive I get:

Downloading packages:
nfs-utils-1.2.9-2.1.fc20.x86_64.rpm                        | 356 kB   00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:nfs-utils-1.2.9-2.1.fc20.x86_64                            1/1 
  Verifying  : 1:nfs-utils-1.2.9-2.1.fc20.x86_64                            1/1 

Installed:
  nfs-utils.x86_64 1:1.2.9-2.1.fc20                                             

Complete!

Additional info:
there are no failure messages in the audit log at all.  so I can't tell what policy is failing.

Comment 1 Miroslav Grepl 2014-01-17 15:29:57 UTC

*** This bug has been marked as a duplicate of bug 1054350 ***