Bug 702867

Summary: SELinux is preventing /usr/bin/passwd from 'execute' accesses on the file /usr/bin/gnome-keyring-daemon.
Product: [Fedora] Fedora Reporter: Jan Vlug <jan.public>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl, nzehr09
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:164e42d8053a31d6261c5c07bb7c436ca2da0f947795c2f1f8bc80c8650e2b65
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-10 08:55:18 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 Jan Vlug 2011-05-07 20:21:34 UTC
SELinux is preventing /usr/bin/passwd from 'execute' accesses on the file /usr/bin/gnome-keyring-daemon.

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

If you believe that passwd should be allowed execute access on the gnome-keyring-daemon 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                system_u:object_r:bin_t:s0
Target Objects                /usr/bin/gnome-keyring-daemon [ file ]
Source                        passwd
Source Path                   /usr/bin/passwd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           passwd-0.78-1.fc14
Target RPM Packages           gnome-keyring-2.32.1-1.fc14
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.12-90.fc14.x86_64 #1 SMP Fri
                              Apr 22 16:01:29 UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    Sun 27 Feb 2011 11:08:45 AM CET
Last Seen                     Sat 07 May 2011 11:48:53 AM CEST
Local ID                      4a4521f9-c291-41e4-bb69-9888f7d192ec

Raw Audit Messages
type=AVC msg=audit(1304761733.202:38114): avc:  denied  { execute } for  pid=2923 comm="passwd" name="gnome-keyring-daemon" dev=dm-1 ino=1312528 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:bin_t:s0 tclass=file


type=SYSCALL msg=audit(1304761733.202:38114): arch=x86_64 syscall=execve success=no exit=EACCES a0=7f6168eef061 a1=7ffff25ef930 a2=66ce50 a3=fffffffffffffff0 items=0 ppid=2916 pid=2923 auid=504 uid=504 gid=504 euid=504 suid=0 fsuid=504 egid=504 sgid=504 fsgid=504 tty=(none) ses=12 comm=passwd exe=/usr/bin/passwd subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 key=(null)

Hash: passwd,passwd_t,bin_t,file,execute

audit2allow

#============= passwd_t ==============
allow passwd_t bin_t:file execute;

audit2allow -R

#============= passwd_t ==============
allow passwd_t bin_t:file execute;

Comment 1 Miroslav Grepl 2011-05-09 16:08:35 UTC
Is gnome-keyring-daemon running?

# ps -eZ |grep gnome-keyring

Comment 2 Jan Vlug 2011-05-10 07:38:40 UTC
ps -eZ |grep gnome-keyring
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 741 ? 00:00:00 gnome-keyring-d
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 807 ? 00:00:00 gnome-keyring-d
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 880 ? 00:00:00 gnome-keyring-d
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 2462 ? 00:00:00 gnome-keyring-d
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 3887 ? 00:00:00 gnome-keyring-d
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 4533 ? 00:00:00 gnome-keyring-d
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 30845 ? 00:00:00 gnome-keyring-d

I only had the problem once.

Comment 3 Miroslav Grepl 2011-05-10 08:55:18 UTC
Ok, I am closing the bug.

This will only happen if gnome-keyring-daemon is not running.  Which
should not be the norm.