Bug 704740

Summary: SELinux is preventing /usr/bin/python from 'relabelfrom' accesses on the directory VPN.
Product: [Fedora] Fedora Reporter: Ren-Bo Wang <rbwang1225>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:d3c03e2bdcd66bd1709aeed419a1a71ff11ab03aab819e9569a5039ef62fe07f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-16 08:55:52 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 Ren-Bo Wang 2011-05-14 14:25:41 UTC
SELinux is preventing /usr/bin/python from 'relabelfrom' accesses on the directory VPN.

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

If you believe that python should be allowed relabelfrom access on the VPN directory 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 yum /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:rpm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:postfix_virtual_t:s0
Target Objects                VPN [ dir ]
Source                        yum
Source Path                   /usr/bin/python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.1-7.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-23.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.5-24.fc15.x86_64 #1 SMP Fri
                              May 6 08:00:28 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Sat 14 May 2011 09:58:16 PM CST
Last Seen                     Sat 14 May 2011 10:11:48 PM CST
Local ID                      85135e94-6943-4cff-a8d5-29550d735185

Raw Audit Messages
type=AVC msg=audit(1305382308.937:77): avc:  denied  { relabelfrom } for  pid=2647 comm="yum" name="VPN" dev=dm-0 ino=657547 scontext=unconfined_u:system_r:rpm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:postfix_virtual_t:s0 tclass=dir


type=SYSCALL msg=audit(1305382308.937:77): arch=x86_64 syscall=lsetxattr success=no exit=EACCES a0=747db10 a1=3051815d8b a2=694e650 a3=27 items=0 ppid=2631 pid=2647 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm=yum exe=/usr/bin/python subj=unconfined_u:system_r:rpm_t:s0-s0:c0.c1023 key=(null)

Hash: yum,rpm_t,postfix_virtual_t,dir,relabelfrom

audit2allow

#============= rpm_t ==============
allow rpm_t postfix_virtual_t:dir relabelfrom;

audit2allow -R

#============= rpm_t ==============
allow rpm_t postfix_virtual_t:dir relabelfrom;

Comment 1 Miroslav Grepl 2011-05-16 08:55:52 UTC

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