Bug 726990

Summary: SELinux is preventing /usr/bin/passwd from 'getattr' accesses on the sock_file /tmp/keyring-VerGUP/control.
Product: [Fedora] Fedora Reporter: ralgh <bugs2rl>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 13CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:45ec9368d0f292efe3d71a22cc90cc17e378f646f1b32d9775ed5ada74c386f3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-01 12:23:49 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 ralgh 2011-07-31 20:17:46 UTC
SELinux is preventing /usr/bin/passwd from 'getattr' accesses on the sock_file /tmp/keyring-VerGUP/control.

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

If you believe that passwd should be allowed getattr access on the control sock_file 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 passwd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:tmp_t:s0
Target Objects                /tmp/keyring-VerGUP/control [ sock_file ]
Source                        passwd
Source Path                   /usr/bin/passwd
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           passwd-0.77-5.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-89.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33.3-85.fc13.i686
                              #1 SMP Thu May 6 18:44:12 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Fr 22 Apr 2011 09:01:29 CEST
Last Seen                     Fr 22 Apr 2011 09:01:29 CEST
Local ID                      7bfa69c1-f438-42d4-9941-b5ad2450a06d

Raw Audit Messages
type=AVC msg=audit(1303455689.581:35): avc:  denied  { getattr } for  pid=1767 comm="passwd" path="/tmp/keyring-VerGUP/control" dev=sda8 ino=269506 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:tmp_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1303455689.581:35): arch=i386 syscall=lstat64 success=yes exit=0 a0=bf83c30e a1=bf83c1fc a2=9e3ff4 a3=3 items=0 ppid=1756 pid=1767 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=tty2 ses=3 comm=passwd exe=/usr/bin/passwd subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 key=(null)

Hash: passwd,passwd_t,tmp_t,sock_file,getattr

audit2allow

#============= passwd_t ==============
allow passwd_t tmp_t:sock_file getattr;

audit2allow -R

#============= passwd_t ==============
allow passwd_t tmp_t:sock_file getattr;

Comment 1 Miroslav Grepl 2011-08-01 12:23:49 UTC

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