Bug 755774

Summary: SELinux is preventing /usr/libexec/fprintd from 'search' accesses on the directory /usr/share/locale.
Product: [Fedora] Fedora Reporter: Basil Mohamed Gohar <me>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:bfefa20a6af627025af8d67de2b09c549a3772eb205539d7f644c1cf80597576
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-23 08:32:37 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 Basil Mohamed Gohar 2011-11-22 02:17:21 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.1-2.fc16.x86_64
reason:         SELinux is preventing /usr/libexec/fprintd from 'search' accesses on the directory /usr/share/locale.
time:           Mon Nov 21 21:17:11 2011

description:
:SELinux is preventing /usr/libexec/fprintd from 'search' accesses on the directory /usr/share/locale.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/usr/share/locale default label should be locale_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /usr/share/locale
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that fprintd should be allowed search access on the locale directory 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 fprintd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:fprintd_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                /usr/share/locale [ dir ]
:Source                        fprintd
:Source Path                   /usr/libexec/fprintd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           fprintd-0.2.0-3.fc15
:Target RPM Packages           filesystem-2.4.44-1.fc16
:Policy RPM                    selinux-policy-3.10.0-56.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.1-2.fc16.x86_64 #1 SMP Mon Nov 14
:                              15:46:10 UTC 2011 x86_64 x86_64
:Alert Count                   12
:First Seen                    Sun 20 Nov 2011 02:00:19 PM EST
:Last Seen                     Mon 21 Nov 2011 09:14:09 PM EST
:Local ID                      5742144b-09cd-4056-951b-c8ec53ee9671
:
:Raw Audit Messages
:type=AVC msg=audit(1321928049.958:297): avc:  denied  { search } for  pid=23463 comm="fprintd" name="locale" dev=sda4 ino=44695636 scontext=system_u:system_r:fprintd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1321928049.958:297): arch=x86_64 syscall=open success=no exit=EACCES a0=3482efc028 a1=0 a2=1b6 a3=1 items=0 ppid=23462 pid=23463 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=fprintd exe=/usr/libexec/fprintd subj=system_u:system_r:fprintd_t:s0-s0:c0.c1023 key=(null)
:
:Hash: fprintd,fprintd_t,user_home_t,dir,search
:
:audit2allow
:
:#============= fprintd_t ==============
:allow fprintd_t user_home_t:dir search;
:
:audit2allow -R
:
:#============= fprintd_t ==============
:allow fprintd_t user_home_t:dir search;
:

Comment 1 Miroslav Grepl 2011-11-23 08:32:37 UTC

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