Bug 726990 - SELinux is preventing /usr/bin/passwd from 'getattr' accesses on the sock_file /tmp/keyring-VerGUP/control.
Summary: SELinux is preventing /usr/bin/passwd from 'getattr' accesses on the sock_fil...
Keywords:
Status: CLOSED DUPLICATE of bug 726992
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:45ec9368d0f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-31 20:17 UTC by ralgh
Modified: 2011-08-01 12:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-01 12:23:49 UTC
Type: ---


Attachments (Terms of Use)

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 ***


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