Bug 1084696 - SELinux is preventing /usr/sbin/nslcd from using the 'chown' capabilities.
Summary: SELinux is preventing /usr/sbin/nslcd from using the 'chown' capabilities.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3aec730a7f5634b87e59beb85ce...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-05 17:26 UTC by Brian J. Murrell
Modified: 2014-04-20 01:25 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-153.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-20 01:25:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Brian J. Murrell 2014-04-05 17:26:19 UTC
Description of problem:
SELinux is preventing /usr/sbin/nslcd from using the 'chown' capabilities.

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

If you believe that nslcd should have the chown capability 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 nslcd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:nslcd_t:s0
Target Context                system_u:system_r:nslcd_t:s0
Target Objects                 [ capability ]
Source                        nslcd
Source Path                   /usr/sbin/nslcd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           nss-pam-ldapd-0.8.13-4.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.9-300.fc20.x86_64 #1 SMP Wed
                              Nov 20 22:23:25 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-12-11 10:17:47 EST
Last Seen                     2013-12-11 10:17:47 EST
Local ID                      1e8edf76-c257-4ae0-994b-831e825b0d60

Raw Audit Messages
type=AVC msg=audit(1386775067.557:18): avc:  denied  { chown } for  pid=1272 comm="nslcd" capability=0  scontext=system_u:system_r:nslcd_t:s0 tcontext=system_u:system_r:nslcd_t:s0 tclass=capability


type=SYSCALL msg=audit(1386775067.557:18): arch=x86_64 syscall=lchown success=no exit=EPERM a0=7fc52da27190 a1=41 a2=37 a3=1 items=0 ppid=1 pid=1272 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=nslcd exe=/usr/sbin/nslcd subj=system_u:system_r:nslcd_t:s0 key=(null)

Hash: nslcd,nslcd_t,nslcd_t,capability,chown

Additional info:
reporter:       libreport-2.2.0
hashmarkername: setroubleshoot
kernel:         3.13.7-200.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-04-07 07:33:28 UTC
commit c854fc5404995b1f0b4ecd72ca619a3b3982baba
Author: Miroslav Grepl <mgrepl>
Date:   Mon Apr 7 09:33:07 2014 +0200

    nslcd wants chown capability

Comment 2 Fedora Update System 2014-04-08 04:49:15 UTC
selinux-policy-3.12.1-152.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-152.fc20

Comment 3 Fedora Update System 2014-04-09 13:17:16 UTC
Package selinux-policy-3.12.1-152.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-152.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4933/selinux-policy-3.12.1-152.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-04-14 22:42:41 UTC
Package selinux-policy-3.12.1-153.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-153.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4933/selinux-policy-3.12.1-153.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-04-20 01:25:26 UTC
selinux-policy-3.12.1-153.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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