Bug 801909 - SELinux is preventing sssd_pam from using the 'sys_resource' capabilities.
SELinux is preventing sssd_pam from using the 'sys_resource' capabilities.
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-03-09 14:46 EST by Stephen Gallagher
Modified: 2012-07-13 12:34 EDT (History)
3 users (show)

See Also:
Fixed In Version: selinux-policy-3.10.0-80.fc16
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-03-23 20:37:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Stephen Gallagher 2012-03-09 14:46:43 EST
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.9-1.fc16.x86_64
reason:         SELinux is preventing sssd_pam from using the 'sys_resource' capabilities.
time:           Fri 09 Mar 2012 02:46:32 PM EST

:SELinux is preventing sssd_pam from using the 'sys_resource' capabilities.
:*****  Plugin sys_resource (91.4 confidence) suggests  ***********************
:If you do not want to get this AVC any longer. These AVC's are caused by running out of resources, usually disk space on your / partition.
:Then you must cleanup diskspace or make sure you are not running too many processes.
:clear up your disk.
:*****  Plugin catchall (9.59 confidence) suggests  ***************************
:If you believe that sssd_pam should have the sys_resource capability by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:allow this access for now by executing:
:# grep sssd_pam /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:Additional Information:
:Source Context                system_u:system_r:sssd_t:s0
:Target Context                system_u:system_r:sssd_t:s0
:Target Objects                 [ capability ]
:Source                        sssd_pam
:Source Path                   sssd_pam
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.2.9-1.fc16.x86_64 #1 SMP Thu Mar 1 01:41:10 UTC
:                              2012 x86_64 x86_64
:Alert Count                   30
:First Seen                    Thu 08 Mar 2012 10:54:59 AM EST
:Last Seen                     Fri 09 Mar 2012 02:02:46 PM EST
:Local ID                      dbb8a682-21b7-4d67-ba31-286e9ff7db54
:Raw Audit Messages
:type=AVC msg=audit(1331319766.414:443): avc:  denied  { sys_resource } for  pid=8971 comm="sssd_pam" capability=24  scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:system_r:sssd_t:s0 tclass=capability
:type=AVC msg=audit(1331319766.414:443): avc:  denied  { setrlimit } for  pid=8971 comm="sssd_pam" scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:system_r:sssd_t:s0 tclass=process
:Hash: sssd_pam,sssd_t,sssd_t,capability,sys_resource
:#============= sssd_t ==============
:allow sssd_t self:capability sys_resource;
:allow sssd_t self:process setrlimit;
:audit2allow -R
:#============= sssd_t ==============
:allow sssd_t self:capability sys_resource;
:allow sssd_t self:process setrlimit;
Comment 1 Daniel Walsh 2012-03-09 15:49:10 EST
Fixed in selinux-policy-3.10.0-79.fc16

yum -y update.
Comment 2 Miroslav Grepl 2012-03-12 04:06:40 EDT
Yes, it has been fixed in this release. But I have an update for -78.fc16 release. I am going to pull -80.fc16 instead of -78.fc16.
Comment 3 Fedora Update System 2012-03-13 08:26:29 EDT
selinux-policy-3.10.0-80.fc16 has been submitted as an update for Fedora 16.
Comment 4 Fedora Update System 2012-03-20 22:25:38 EDT
Package selinux-policy-3.10.0-80.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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-80.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 5 Fedora Update System 2012-03-23 20:37:47 EDT
selinux-policy-3.10.0-80.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 6 Miroslav Grepl 2012-07-13 12:34:38 EDT
Ah, you are right. We have it.

allow sssd_t sssd_t : process { fork sigchld sigkill signal getsched setsched getcap setfscreate setrlimit } ;

So we need to backport it.

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