Bug 742792

Summary: SELinux is preventing /usr/bin/gnome-keyring-daemon from read, write access on the arquivo /var/lib/gdm/.cache/dconf/user.
Product: [Fedora] Fedora Reporter: Elias Oliveira de Jesus <flama.es>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dominick.grift, dwalsh, flama.es, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:8c7ed64c325f5bb0ff9c680c974955d5e90086873798393b9bdeb7a3e0602932
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-03 08:38:54 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 Elias Oliveira de Jesus 2011-10-02 20:29:39 UTC
SELinux is preventing /usr/bin/gnome-keyring-daemon from read, write access on the arquivo /var/lib/gdm/.cache/dconf/user.

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

If you believe that gnome-keyring-daemon should be allowed read write access on the user 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 gnome-keyring-d /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_dbusd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:xdm_var_lib_t:s0
Target Objects                /var/lib/gdm/.cache/dconf/user [ file ]
Source                        gnome-keyring-d
Source Path                   /usr/bin/gnome-keyring-daemon
Port                          <Desconhecido>
Host                          (removed)
Source RPM Packages           gnome-keyring-3.0.3-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-38.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.4-5.fc15.x86_64 #1 SMP Tue Aug
                              30 14:38:32 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Dom 18 Set 2011 02:53:40 BRT
Last Seen                     Dom 18 Set 2011 02:53:40 BRT
Local ID                      0902599d-7895-4c32-990a-fb178db06a41

Raw Audit Messages
type=AVC msg=audit(1316325220.420:84): avc:  denied  { read write } for  pid=2020 comm="gnome-keyring-d" name="user" dev=sda7 ino=263101 scontext=system_u:system_r:xdm_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xdm_var_lib_t:s0 tclass=file


type=AVC msg=audit(1316325220.420:84): avc:  denied  { open } for  pid=2020 comm="gnome-keyring-d" name="user" dev=sda7 ino=263101 scontext=system_u:system_r:xdm_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xdm_var_lib_t:s0 tclass=file


type=SYSCALL msg=audit(1316325220.420:84): arch=x86_64 syscall=open success=yes exit=EBADF a0=27a04b0 a1=42 a2=180 a3=7fffd6693330 items=0 ppid=2019 pid=2020 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=4294967295 comm=gnome-keyring-d exe=/usr/bin/gnome-keyring-daemon subj=system_u:system_r:xdm_dbusd_t:s0-s0:c0.c1023 key=(null)

Hash: gnome-keyring-d,xdm_dbusd_t,xdm_var_lib_t,file,read,write

audit2allow

#============= xdm_dbusd_t ==============
#!!!! The source type 'xdm_dbusd_t' can write to a 'file' of the following types:
# security_t, user_home_t, session_dbusd_tmp_t

allow xdm_dbusd_t xdm_var_lib_t:file { read write open };

audit2allow -R

#============= xdm_dbusd_t ==============
#!!!! The source type 'xdm_dbusd_t' can write to a 'file' of the following types:
# security_t, user_home_t, session_dbusd_tmp_t

allow xdm_dbusd_t xdm_var_lib_t:file { read write open };

Comment 1 Miroslav Grepl 2011-10-03 08:38:54 UTC

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