Bug 1214377 - SELinux is preventing /usr/libexec/sssd/krb5_child from 'read' accesses on the key Unknown.
Summary: SELinux is preventing /usr/libexec/sssd/krb5_child from 'read' accesses on th...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
high
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2d44d5513c9a713ea4c0b16d98f...
Depends On:
Blocks: 1277139
TreeView+ depends on / blocked
 
Reported: 2015-04-22 15:05 UTC by Guy Streeter
Modified: 2016-02-10 01:33 UTC (History)
20 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1277139 (view as bug list)
Environment:
Last Closed: 2015-12-08 15:56:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Comment 1 Lukas Vrabec 2015-04-27 08:51:11 UTC
Hi, 
Please attach:
$ ps -efZ | grep unconfined_service_t

Comment 9 Daniel Walsh 2015-10-17 11:55:25 UTC
This just means that a process running as unconfined_service_t during boot created a kernel keyring owned by root.   Then sssd_t tries to read it.

I would just allow it.  We have never gotten a good handle on confining the kernel keyring.  

Most likely one of these processes created the keyring.

system_u:system_r:unconfined_service_t:s0 root 897 1  0 09:21 ?        00:00:00 /sbin/rngd -f

This process is running with the wrong label.  restorecon -f /sbin/rngd, to see if this fixed the label.

system_u:system_r:unconfined_service_t:s0 redis 1411 1  0 09:22 ?      00:00:00 /usr/bin/redis-server 127.0.0.1:6379

Same thing here restorecon -v /usr/bin/redis-server

Could be some other bin_t process is starting these domains.

system_u:system_r:unconfined_service_t:s0 pcp 3385 1  0 09:22 ?        00:00:00 pmlogger -P -r -T24h10m -c config.default -m pmlogger_check 20150427.09.22
system_u:system_r:unconfined_service_t:s0 streeter 3927 3897  0 09:22 ? 

restorecon -v /usr/bin/pmlogger

00:00:00 ssh -x -a -oClearAllForwardings=yes -2 streeter.hst.phx2.redhat.com -s sftp
system_u:system_r:unconfined_service_t:s0 streeter 4242 3897  0 09:22 ? 00:00:00 /usr/bin/sshfs streeter.hst.phx2.redhat.com:/srv/collabrador /home/streeter/collabrador
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 streeter 6628 5652  0 09:25 pts/0 00:00:00 grep --color=auto unconfined_service_t

Are you launching ssh from a service script/unit file?

Comment 10 Jakub Hrozek 2015-10-19 07:33:08 UTC
Thank you Dan for the detailed analysis. I think it's time to move the bug to selinux-policy b/c it looks like you'll want to allow reading unconfined keyring..

Comment 11 Fedora End Of Life 2015-11-04 15:18:02 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 12 Lukas Vrabec 2015-12-08 14:01:17 UTC
Hi, 
Any update here? Could you still reproduce this issue?

Comment 13 Guy Streeter 2015-12-08 15:03:49 UTC
I don't see this on Fedora 23.

Comment 14 Lukas Vrabec 2015-12-08 15:56:59 UTC
Thank you.


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