Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at

Bug 1229475

Summary: SELinux is preventing /usr/bin/python2.7 from using the 'transition' accesses on a process.
Product: [Fedora] Fedora Reporter: William Brown <william>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6f073683b058c0606ccdf4036b00ada1645bdce31f5c7e6d33753d9d8360841e
Fixed In Version: selinux-policy-3.13.1-128.2.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-27 22:33:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description William Brown 2015-06-08 21:30:07 UTC
Description of problem:
Run dnf upgrade on F22 as a confined root user.
SELinux is preventing /usr/bin/python2.7 from using the 'transition' accesses on a process.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that python2.7 should be allowed transition access on processes labeled rpm_script_t by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# grep dnf /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                staff_u:sysadm_r:sysadm_t:s0-s0:c0.c1023
Target Context                staff_u:sysadm_r:rpm_script_t:s0-s0:c0.c1023
Target Objects                /usr/bin/bash [ process ]
Source                        dnf
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           bash-4.3.39-1.fc22.x86_64
Policy RPM                    selinux-policy-3.13.1-126.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.4-303.fc22.x86_64 #1 SMP Thu
                              May 28 12:37:06 UTC 2015 x86_64 x86_64
Alert Count                   49
First Seen                    2015-06-06 09:23:29 ACST
Last Seen                     2015-06-09 06:56:45 ACST
Local ID                      5027a44c-589d-475e-a620-eeed7738c065

Raw Audit Messages
type=AVC msg=audit(1433798805.921:7660): avc:  denied  { transition } for  pid=10701 comm="dnf" path="/usr/bin/bash" dev="dm-3" ino=198146 scontext=staff_u:sysadm_r:sysadm_t:s0-s0:c0.c1023 tcontext=staff_u:sysadm_r:rpm_script_t:s0-s0:c0.c1023 tclass=process permissive=0

type=SYSCALL msg=audit(1433798805.921:7660): arch=x86_64 syscall=execve success=no exit=EACCES a0=2e9dba0 a1=27b9380 a2=7fff922cb010 a3=3fa4c8bea0 items=0 ppid=10225 pid=10701 auid=1343600009 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm=dnf exe=2F7573722F62696E2F707974686F6E322E37202864656C6574656429 subj=staff_u:sysadm_r:sysadm_t:s0-s0:c0.c1023 key=(null)

Hash: dnf,sysadm_t,rpm_script_t,process,transition

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.5.1
hashmarkername: setroubleshoot
kernel:         4.0.4-303.fc22.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2015-06-17 11:24:01 UTC
commit 3ae681c5fb57ea40356d8180c43a07b0b9d7dd11
Author: Miroslav Grepl <mgrepl>
Date:   Wed Jun 17 13:22:31 2015 +0200

    Call rpm_transition_script() from rpm_run() interface.

Comment 2 Fedora Update System 2015-06-19 07:51:29 UTC
selinux-policy-3.13.1-128.2.fc22 has been submitted as an update for Fedora 22.

Comment 3 Fedora Update System 2015-06-21 00:34:15 UTC
Package selinux-policy-3.13.1-128.2.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.13.1-128.2.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-06-27 22:33:55 UTC
selinux-policy-3.13.1-128.2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.