Bug 872367

Summary: SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'read' accesses on the file /etc/passwd.
Product: [Fedora] Fedora Reporter: ZetaFunction <zetafunction11>
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:838f04c837bb48739b45edaa14da7bbbcd3713ca70f67f739aaf4e688b3ab8ba
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-20 16:26:19 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description ZetaFunction 2012-11-01 21:51:20 UTC
Additional info:
libreport version: 2.0.17
kernel:         3.6.3-1.fc17.x86_64

Comment 1 ZetaFunction 2012-11-01 21:51:23 UTC
Created attachment 636849 [details]
File: type

Comment 2 ZetaFunction 2012-11-01 21:51:25 UTC
Created attachment 636850 [details]
File: hashmarkername

Comment 3 ZetaFunction 2012-11-01 22:04:22 UTC
I sent SIGHUP to packagekit process (via 'SystemMonitor', not terminal), and then got this error. But previously I ordinary sent this signal, and window used to pop up with password reques.

# grep ksysguardproces /var/log/audit/audit.log | audit2allow -M mypol
Nothing to do

Comment 4 Daniel Walsh 2012-11-05 18:36:12 UTC
Could you attach the avc's.

ausearch -m avc

Comment 5 ZetaFunction 2012-11-06 11:25:19 UTC
time->Tue Nov  6 15:23:37 2012
type=SYSCALL msg=audit(1352201017.855:83): arch=c000003e syscall=2 success=no exit=-13 a0=7f0ae5eb16ca a1=80000 a2=1b6 a3=238 items=0 ppid=2073 pid=2074 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ksysguardproces" exe="/usr/libexec/kde4/ksysguardprocesslist_helper" subj=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1352201017.855:83): avc:  denied  { read } for  pid=2074 comm="ksysguardproces" na="passwd" dev="sda7" ino=46258 scontext=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 tcontext=sysm_u:object_r:passwd_file_t:s0 tclass=file
----
time->Tue Nov  6 15:23:37 2012
type=SYSCALL msg=audit(1352201017.855:84): arch=c000003e syscall=2 success=no exit=-13 a0=7f0ae5eb16ca1=80000 a2=1b6 a3=238 items=0 ppid=2073 pid=2074 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 ed=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ksysguardproces" exe="/usr/libexec/kde4/ksysguardpcesslist_helper" subj=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1352201017.855:84): avc:  denied  { read } for  pid=2074 comm="ksysguardproces" na="passwd" dev="sda7" ino=46258 scontext=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 tcontext=sysm_u:object_r:passwd_file_t:s0 tclass=file
----
time->Tue Nov  6 15:23:38 2012
type=SYSCALL msg=audit(1352201018.157:86): arch=c000003e syscall=2 success=no exit=-13 a0=7f83455186ca1=80000 a2=1b6 a3=238 items=0 ppid=2078 pid=2079 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 ed=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ksysguardproces" exe="/usr/libexec/kde4/ksysguardpcesslist_helper" subj=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1352201018.157:86): avc:  denied  { read } for  pid=2079 comm="ksysguardproces" na="passwd" dev="sda7" ino=46258 scontext=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 tcontext=sysm_u:object_r:passwd_file_t:s0 tclass=file
----
time->Tue Nov  6 15:23:38 2012
type=SYSCALL msg=audit(1352201018.158:87): arch=c000003e syscall=2 success=no exit=-13 a0=7f83455186ca1=80000 a2=1b6 a3=238 items=0 ppid=2078 pid=2079 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 ed=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ksysguardproces" exe="/usr/libexec/kde4/ksysguardpcesslist_helper" subj=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1352201018.158:87): avc:  denied  { read } for  pid=2079 comm="ksysguardproces" na="passwd" dev="sda7" ino=46258 scontext=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 tcontext=sysm_u:object_r:passwd_file_t:s0 tclass=file

Comment 6 Miroslav Grepl 2012-11-07 11:46:03 UTC
Added.


commit 4179ed3994c3e2ba041dfe42cd2a8631ceddc528
Author: Miroslav Grepl <mgrepl>
Date:   Wed Nov 7 12:44:20 2012 +0100

    gnomessytemmm_t needs to read /etc/passwd

Comment 7 Fedora Update System 2012-11-21 11:52:39 UTC
selinux-policy-3.10.0-161.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-161.fc17

Comment 8 Fedora Update System 2012-11-22 03:54:36 UTC
Package selinux-policy-3.10.0-161.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-161.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-18787/selinux-policy-3.10.0-161.fc17
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-12-20 16:26:21 UTC
selinux-policy-3.10.0-161.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.