Bug 886949 - SELinux is preventing /usr/libexec/fprintd from 'read' accesses on the file /proc/<pid>/cmdline.
Summary: SELinux is preventing /usr/libexec/fprintd from 'read' accesses on the file /...
Keywords:
Status: CLOSED DUPLICATE of bug 887087
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:16ac8f17ede9cb08a7ad7a9c635...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-13 16:27 UTC by Dale Turner
Modified: 2012-12-14 12:16 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-14 12:16:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dale Turner 2012-12-13 16:27:30 UTC
Description of problem:
SELinux is preventing /usr/libexec/fprintd from 'read' accesses on the file /proc/<pid>/cmdline.

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

If you believe that fprintd should be allowed read access on the cmdline 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 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                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Objects                /proc/<pid>/cmdline [ file ]
Source                        fprintd
Source Path                   /usr/libexec/fprintd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           fprintd-0.4.1-3.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-62.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.10-4.fc18.x86_64 #1 SMP Tue
                              Dec 11 18:01:27 UTC 2012 x86_64 x86_64
Alert Count                   1
First Seen                    2012-12-13 12:26:33 AST
Last Seen                     2012-12-13 12:26:33 AST
Local ID                      75e1447c-7f10-4f3f-bcd5-94e5ceac383d

Raw Audit Messages
type=AVC msg=audit(1355415993.827:396): avc:  denied  { read } for  pid=4511 comm="fprintd" path="/proc/14270/cmdline" dev="proc" ino=57959 scontext=system_u:system_r:fprintd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tclass=file


type=SYSCALL msg=audit(1355415993.827:396): arch=x86_64 syscall=execve success=yes exit=0 a0=2600760 a1=2600650 a2=25ff010 a3=15 items=0 ppid=4510 pid=4511 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,xdm_t,file,read

audit2allow

#============= fprintd_t ==============
allow fprintd_t xdm_t:file read;

audit2allow -R

#============= fprintd_t ==============
allow fprintd_t xdm_t:file read;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.10-4.fc18.x86_64
type:           libreport

Potential duplicate: bug 757404

Comment 1 Miroslav Grepl 2012-12-14 12:16:45 UTC

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


Note You need to log in before you can comment on or make changes to this bug.