Bug 1046860 - SELinux is preventing /usr/sbin/bumblebeed from 'read' accesses on the file /etc/group.
Summary: SELinux is preventing /usr/sbin/bumblebeed from 'read' accesses on the file /...
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:933a7235b1a5b4bcb6062954649...
: 1050882 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-27 07:13 UTC by Sayak Sarkar
Modified: 2014-01-16 07:11 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-116.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-16 07:11:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sayak Sarkar 2013-12-27 07:13:24 UTC
Description of problem:
SELinux is preventing /usr/sbin/bumblebeed from 'read' accesses on the file /etc/group.

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

If you believe that bumblebeed should be allowed read access on the group file 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:passwd_file_t:s0
Target Objects                /etc/group [ file ]
Source                        bumblebeed
Source Path                   /usr/sbin/bumblebeed
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bumblebee-3.2.1-4.fc20.x86_64
Target RPM Packages           setup-2.8.71-2.fc20.noarch
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.12.5-302.fc20.x86_64 #1 SMP Tue
                              Dec 17 20:42:32 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-12-19 18:35:08 IST
Last Seen                     2013-12-27 12:28:33 IST
Local ID                      4bc24de6-b1b4-4dfd-9cd2-caf2f93f7be6

Raw Audit Messages
type=AVC msg=audit(1388127513.885:590): avc:  denied  { read } for  pid=6054 comm="bumblebeed" name="group" dev="dm-1" ino=1443483 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file


type=AVC msg=audit(1388127513.885:590): avc:  denied  { open } for  pid=6054 comm="bumblebeed" path="/etc/group" dev="dm-1" ino=1443483 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file


type=SYSCALL msg=audit(1388127513.885:590): arch=x86_64 syscall=open success=yes exit=EINTR a0=7fe07d40e4e7 a1=80000 a2=1b6 a3=0 items=0 ppid=1 pid=6054 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=bumblebeed exe=/usr/sbin/bumblebeed subj=system_u:system_r:bumblebee_t:s0 key=(null)

Hash: bumblebeed,bumblebee_t,passwd_file_t,file,read

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.5-302.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-01-06 13:52:38 UTC
Has been added.

Comment 2 cyrushmh 2014-01-09 09:50:59 UTC
Description of problem:
1. First unload the nvidia module by logging in as root in a terminal. Terminal output of cat /proc/apci/bbswitch should be OFF after this step.

systemctl restart bumblebeed 
2. Uninstall the nvidia module

/usr/sbin/bumblebee-nvidia --debug --uninstall
3. modinfo nvidia probably gives you an output similar to this

[root@localhost ~]# modinfo nvidia
filename:       /lib/modules/3.11.8-300.fc20.x86_64/kernel/drivers/video/nvidia.ko
modinfo: ERROR: could not get modinfo from 'nvidia': No such file or directory
4. Prepare to compile the nvidia driver at restart for the current kernel and reboot the system

[root@localhost ~]# touch /etc/sysconfig/nvidia/compile-nvidia-driver
[root@localhost ~]# reboot

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.6-300.fc20.x86_64
type:           libreport

Comment 3 Miroslav Grepl 2014-01-10 09:44:13 UTC
#============= bumblebee_t ==============

#!!!! This avc is allowed in the current policy
allow bumblebee_t passwd_file_t:file read;

Comment 4 Miroslav Grepl 2014-01-10 09:44:31 UTC
*** Bug 1050882 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2014-01-13 22:57:03 UTC
selinux-policy-3.12.1-116.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-116.fc20

Comment 6 Fedora Update System 2014-01-15 05:58:35 UTC
Package selinux-policy-3.12.1-116.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-116.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0806/selinux-policy-3.12.1-116.fc20
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2014-01-16 07:11:35 UTC
selinux-policy-3.12.1-116.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.