Bug 1155339 - SELinux is preventing bumblebeed from 'search' accesses on the directory /var/lib/sss/mc.
Summary: SELinux is preventing bumblebeed from 'search' accesses on the directory /var...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ef8498d2057871c40cca39b5281...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-21 23:16 UTC by John Weekley
Modified: 2014-12-03 17:15 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-99.fc21
Clone Of:
Environment:
Last Closed: 2014-12-03 17:15:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Weekley 2014-10-21 23:16:32 UTC
Description of problem:
sudo yum -y install bbswitch bumblebee
 grep bumblebeed /var/log/audit/audit.log | audit2allow -M bumblebee
******************** IMPORTANT ***********************
To make this policy package active, execute:

semodule -i bumblebee.pp

[root@boris weekleyj]# semodule -i bumblebee.pp
libsepol.print_missing_requirements: bumblebee's global requirements were not met: type/attribute bumblebee_t (No such file or directory).
libsemanage.semanage_link_sandbox: Link packages failed (No such file or directory).

It's repeatable.
SELinux is preventing bumblebeed from 'search' accesses on the directory /var/lib/sss/mc.

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

If you believe that bumblebeed should be allowed search access on the mc directory 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 bumblebeed /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:bumblebee_t:s0
Target Context                system_u:object_r:sssd_public_t:s0
Target Objects                /var/lib/sss/mc [ dir ]
Source                        bumblebeed
Source Path                   bumblebeed
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           sssd-common-1.12.1-2.fc21.x86_64
Policy RPM                    selinux-policy-3.13.1-86.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.17.1-300.fc21.x86_64 #1 SMP Wed
                              Oct 15 20:53:21 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-10-21 18:13:37 CDT
Last Seen                     2014-10-21 18:13:37 CDT
Local ID                      e50d301e-79a4-49f7-8dcb-bb8316e5196d

Raw Audit Messages
type=AVC msg=audit(1413933217.317:1280): avc:  denied  { search } for  pid=5045 comm="bumblebeed" name="mc" dev="sda4" ino=130629 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:sssd_public_t:s0 tclass=dir permissive=1


Hash: bumblebeed,bumblebee_t,sssd_public_t,dir,search

Version-Release number of selected component:
selinux-policy-3.13.1-86.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.17.1-300.fc21.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2014-11-07 20:33:31 UTC
Does anyone know why bumblebee needs this search?

Comment 2 Miroslav Grepl 2014-11-10 09:11:43 UTC
bumblebee has 

auth_read_passwd(bumblebee_t)

and looking for

/var/lib/sss/mc/{group|passwd}

on sssd systems.

Comment 3 Lukas Vrabec 2014-11-14 13:15:03 UTC
commit c94799594ec00950fda591713e681222e9c87cd1
Author: Lukas Vrabec <lvrabec>
Date:   Fri Nov 14 14:13:05 2014 +0100

    Allow bumblebee to use nsswitch. BZ(1155339)

Comment 4 Fedora Update System 2014-11-21 12:23:56 UTC
selinux-policy-3.13.1-99.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-99.fc21

Comment 5 Fedora Update System 2014-12-03 17:15:15 UTC
selinux-policy-3.13.1-99.fc21 has been pushed to the Fedora 21 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.