Bug 825812

Summary: SELinux is preventing /usr/lib/systemd/systemd-logind from 'read' accesses on the directory keyring-BJuhZa.
Product: [Fedora] Fedora Reporter: Juan Orti <jorti>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:5de165732500108ff155b0d3b410d0d68d6ce2c588f12172da2f0e5c9826eb3b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-22 11:58:26 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 Juan Orti 2012-05-28 14:18:53 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.7-1.fc17.x86_64
time:           lun 28 may 2012 16:18:19 CEST

description:
:SELinux is preventing /usr/lib/systemd/systemd-logind from 'read' accesses on the directory keyring-BJuhZa.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If cree que de manera predeterminada, systemd-logind debería permitir acceso read sobre  keyring-BJuhZa directory.     
:Then debería reportar esto como un error.
:Puede generar un módulo de política local para permitir este acceso.
:Do
:permita el acceso momentáneamente executando:
:# grep systemd-logind /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:systemd_logind_t:s0
:Target Context                xguest_u:object_r:gkeyringd_tmp_t:s0
:Target Objects                keyring-BJuhZa [ dir ]
:Source                        systemd-logind
:Source Path                   /usr/lib/systemd/systemd-logind
:Port                          <Desconocido>
:Host                          (removed)
:Source RPM Packages           systemd-44-12.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-125.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                    lun 28 may 2012 16:17:29 CEST
:Last Seen                     lun 28 may 2012 16:17:29 CEST
:Local ID                      55793f26-5433-45e1-8e7c-da4112299220
:
:Raw Audit Messages
:type=AVC msg=audit(1338214649.104:260): avc:  denied  { read } for  pid=934 comm="systemd-logind" name="keyring-BJuhZa" dev="tmpfs" ino=80497 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=xguest_u:object_r:gkeyringd_tmp_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1338214649.104:260): arch=x86_64 syscall=openat success=no exit=EACCES a0=d a1=7fff61054e23 a2=f0800 a3=0 items=0 ppid=1 pid=934 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-logind exe=/usr/lib/systemd/systemd-logind subj=system_u:system_r:systemd_logind_t:s0 key=(null)
:
:Hash: systemd-logind,systemd_logind_t,gkeyringd_tmp_t,dir,read
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Juan Orti 2012-05-28 14:20:55 UTC
I just tried to login as xguest in gdm, but I can't

Comment 2 Miroslav Grepl 2012-06-22 11:58:26 UTC
Should be fixed in the latest policy.