Bug 1054851 - SELinux is preventing rpm scriplets from executing
Summary: SELinux is preventing rpm scriplets from executing
Keywords:
Status: CLOSED DUPLICATE of bug 1054350
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 20
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: 2014-01-17 15:28 UTC by Andy Wang
Modified: 2014-01-17 15:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-17 15:29:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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