Bug 810733 - SELinux is preventing /bin/rpm from 'getattr' accesses on the directory /etc/samba.
Summary: SELinux is preventing /bin/rpm from 'getattr' accesses on the directory /etc/...
Keywords:
Status: CLOSED DUPLICATE of bug 810731
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:44b3248374a62cff7aa97e851be...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-08 18:04 UTC by Renich Bon Ciric
Modified: 2012-04-09 18:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-09 18:44:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Renich Bon Ciric 2012-04-08 18:04:46 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.1-2.fc16.x86_64
reason:         SELinux is preventing /bin/rpm from 'getattr' accesses on the directory /etc/samba.
time:           Sun 08 Apr 2012 01:04:38 PM CDT

description:
:SELinux is preventing /bin/rpm from 'getattr' accesses on the directory /etc/samba.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that rpm should be allowed getattr access on the samba 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 rpm /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:vhostmd_t:s0
:Target Context                system_u:object_r:samba_etc_t:s0
:Target Objects                /etc/samba [ dir ]
:Source                        rpm
:Source Path                   /bin/rpm
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           rpm-4.9.1.2-6.fc16.x86_64
:Target RPM Packages           samba-common-3.6.3-78.fc16.x86_64
:Policy RPM                    selinux-policy-3.10.0-80.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.1-2.fc16.x86_64 #1 SMP
:                              Tue Apr 3 00:46:10 UTC 2012 x86_64 x86_64
:Alert Count                   6
:First Seen                    Sun 08 Apr 2012 01:34:06 AM CDT
:Last Seen                     Sun 08 Apr 2012 12:48:00 PM CDT
:Local ID                      eec4cbf8-29db-48bb-b3b2-80731b3c957b
:
:Raw Audit Messages
:type=AVC msg=audit(1333907280.735:107): avc:  denied  { getattr } for  pid=2136 comm="rpm" path="/etc/samba" dev="dm-1" ino=2491350 scontext=system_u:system_r:vhostmd_t:s0 tcontext=system_u:object_r:samba_etc_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1333907280.735:107): arch=x86_64 syscall=stat success=no exit=EACCES a0=7fff2a1fcba0 a1=7fff2a1fcb10 a2=7fff2a1fcb10 a3=400000000000000 items=0 ppid=2135 pid=2136 auid=4294967295 uid=112 gid=112 euid=112 suid=112 fsuid=112 egid=112 sgid=112 fsgid=112 tty=(none) ses=4294967295 comm=rpm exe=/bin/rpm subj=system_u:system_r:vhostmd_t:s0 key=(null)
:
:Hash: rpm,vhostmd_t,samba_etc_t,dir,getattr
:
:audit2allow
:
:#============= vhostmd_t ==============
:allow vhostmd_t samba_etc_t:dir getattr;
:
:audit2allow -R
:
:#============= vhostmd_t ==============
:allow vhostmd_t samba_etc_t:dir getattr;
:

Comment 1 Daniel Walsh 2012-04-09 18:44:26 UTC

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


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