Bug 903886 - SELinux is preventing /usr/bin/obex-data-server from 'module_request' accesses on the system .
Summary: SELinux is preventing /usr/bin/obex-data-server from 'module_request' accesse...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1ae22a6ae951dc01b19efaec1cc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-25 01:18 UTC by Garrett Holmstrom
Modified: 2013-03-14 02:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-14 02:59:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Garrett Holmstrom 2013-01-25 01:18:01 UTC
Description of problem:
I logged into an xfce session right after the system rebooted.  I'm guessing obex-data-server is a background service.
SELinux is preventing /usr/bin/obex-data-server from 'module_request' accesses on the system .

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

If you believe that obex-data-server should be allowed module_request access on the  system 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 obex-data-serve /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                staff_u:staff_r:obex_t:s0-s0:c0.c1023
Target Context                system_u:system_r:kernel_t:s0
Target Objects                 [ system ]
Source                        obex-data-serve
Source Path                   /usr/bin/obex-data-server
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           obex-data-server-0.4.6-4.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-71.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.7.2-204.fc18.x86_64 #1 SMP Wed
                              Jan 16 16:22:52 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-01-24 17:13:23 PST
Last Seen                     2013-01-24 17:13:23 PST
Local ID                      930b6960-0738-4912-a585-f57a35803973

Raw Audit Messages
type=AVC msg=audit(1359076403.881:362): avc:  denied  { module_request } for  pid=1912 comm="obex-data-serve" kmod="bt-proto-3" scontext=staff_u:staff_r:obex_t:s0-s0:c0.c1023 tcontext=system_u:system_r:kernel_t:s0 tclass=system


type=SYSCALL msg=audit(1359076403.881:362): arch=x86_64 syscall=socket success=yes exit=E2BIG a0=1f a1=1 a2=3 a3=7fff2ec61980 items=0 ppid=1 pid=1912 auid=1000 uid=1000 gid=100 euid=1000 suid=1000 fsuid=1000 egid=100 sgid=100 fsgid=100 ses=3 tty=(none) comm=obex-data-serve exe=/usr/bin/obex-data-server subj=staff_u:staff_r:obex_t:s0-s0:c0.c1023 key=(null)

Hash: obex-data-serve,obex_t,kernel_t,system,module_request

audit2allow

#============= obex_t ==============
#!!!! This avc can be allowed using the boolean 'domain_kernel_load_modules'

allow obex_t kernel_t:system module_request;

audit2allow -R

#============= obex_t ==============
#!!!! This avc can be allowed using the boolean 'domain_kernel_load_modules'

allow obex_t kernel_t:system module_request;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.2-204.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-01-25 10:55:57 UTC
Added.

commit cc312d6bb2ced2af999c642866fcd22591a128a9
Author: Miroslav Grepl <mgrepl>
Date:   Fri Jan 25 11:53:52 2013 +0100

    Allow obex-data-server to request the kernel to load a module

Comment 2 Fedora Update System 2013-01-31 13:18:46 UTC
selinux-policy-3.11.1-74.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-74.fc18

Comment 3 Fedora Update System 2013-02-01 16:39:21 UTC
Package selinux-policy-3.11.1-74.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-74.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1693/selinux-policy-3.11.1-74.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-02-08 02:24:03 UTC
selinux-policy-3.11.1-74.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Garrett Holmstrom 2013-03-11 19:48:31 UTC
I'm still seeing this with selinux-policy-3.11.1-82.fc18:

type=AVC msg=audit(1363030742.538:384): avc:  denied  { module_request } for  pid=2741 comm="obex-data-serve" kmod="bt-proto-3" scontext=staff_u:staff_r:obex_t:s0-s0:c0.c1023 tcontext=system_u:system_r:kernel_t:s0 tclass=system

type=SYSCALL msg=audit(1363030742.538:384): arch=x86_64 syscall=socket success=yes exit=E2BIG a0=1f a1=1 a2=3 a3=0 items=0 ppid=1 pid=2741 auid=1000 uid=1000 gid=100 euid=1000 suid=1000 fsuid=1000 egid=100 sgid=100 fsgid=100 ses=2 tty=(none) comm=obex-data-serve exe=/usr/bin/obex-data-server subj=staff_u:staff_r:obex_t:s0-s0:c0.c1023 key=(null)

Comment 6 Daniel Walsh 2013-03-11 19:55:54 UTC
I see it in Rawhide but not in F18.

Comment 7 Miroslav Grepl 2013-03-12 10:15:39 UTC
Fixed in selinux-policy-3.11.1-85.fc18.noarch

Comment 8 Fedora Update System 2013-03-12 13:55:21 UTC
selinux-policy-3.11.1-85.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2013-3605/selinux-policy-3.11.1-85.fc18

Comment 9 Fedora Update System 2013-03-12 23:34:56 UTC
Package selinux-policy-3.11.1-85.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-85.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3605/selinux-policy-3.11.1-85.fc18
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2013-03-14 02:59:58 UTC
selinux-policy-3.11.1-85.fc18 has been pushed to the Fedora 18 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.