Bug 829866

Summary: SELinux is preventing /usr/bin/passwd from 'getattr' accesses on the sock_file /run/user/frywalker/keyring-Hlndxz/control.
Product: [Fedora] Fedora Reporter: frywalker <fry.futurateam>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl, patrick
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e5458390f2278bb3b2d5dc01d146846f949648e6335add644a10a6f6fec32ae8
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-17 08:53:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description frywalker 2012-06-07 17:42:49 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.7-1.fc17.x86_64
time:           jeu. 07 juin 2012 19:42:40 CEST

description:
:SELinux is preventing /usr/bin/passwd from 'getattr' accesses on the sock_file /run/user/frywalker/keyring-Hlndxz/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:gkeyringd_tmp_t:s0
:Target Objects                /run/user/frywalker/keyring-Hlndxz/control [
:                              sock_file ]
:Source                        passwd
:Source Path                   /usr/bin/passwd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           passwd-0.78.99-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-128.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.7-1.fc17.x86_64 #1 SMP Mon
:                              May 21 22:32:19 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    jeu. 07 juin 2012 19:40:25 CEST
:Last Seen                     jeu. 07 juin 2012 19:40:25 CEST
:Local ID                      be7dc003-0684-4f97-b257-e4e4c5c852e2
:
:Raw Audit Messages
:type=AVC msg=audit(1339090825.314:79917): avc:  denied  { getattr } for  pid=17086 comm="passwd" path="/run/user/frywalker/keyring-Hlndxz/control" dev="tmpfs" ino=20363 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:gkeyringd_tmp_t:s0 tclass=sock_file
:
:
:type=SYSCALL msg=audit(1339090825.314:79917): arch=x86_64 syscall=lstat success=no exit=EACCES a0=7fff817fd112 a1=7fff817fd080 a2=7fff817fd080 a3=6c61777972662f72 items=0 ppid=17080 pid=17086 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=pts4 ses=2 comm=passwd exe=/usr/bin/passwd subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 key=(null)
:
:Hash: passwd,passwd_t,gkeyringd_tmp_t,sock_file,getattr
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-06-22 08:46:37 UTC
Are you still getting this one?

Comment 2 Patrick Palka 2012-11-29 21:56:35 UTC
I just received the same error from SELinux soon after successfully changing my user password with passwd. I am running the latest GNOME flavor of Fedora 17.

(The bugzilla bug reporting software sent me here.)