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 bugzilla.redhat.com.
Bug 1229475 - SELinux is preventing /usr/bin/python2.7 from using the 'transition' accesses on a process.
Summary: SELinux is preventing /usr/bin/python2.7 from using the 'transition' accesses...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6f073683b058c0606ccdf4036b0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-08 21:30 UTC by William Brown
Modified: 2015-06-27 22:33 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-128.2.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-27 22:33:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.
Do
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:
selinux-policy-3.13.1-126.fc22.noarch

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.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-128.2.fc22

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:
https://admin.fedoraproject.org/updates/FEDORA-2015-10299/selinux-policy-3.13.1-128.2.fc22
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.


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