Bug 823294

Summary: SELinux is preventing /usr/sbin/gpsd from 'module_request' accesses on the system .
Product: [Fedora] Fedora Reporter: Michal Ambroz <rebus>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:09b8f376aba9171a20cd2735494fa504179132d83fab96bb52a3f1d36a9be6ff
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-03 23:31:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Ambroz 2012-05-20 16:24:32 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.4-5.fc17.x86_64
time:           Sun 20 May 2012 06:24:06 PM CEST

description:
:SELinux is preventing /usr/sbin/gpsd from 'module_request' accesses on the system .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that gpsd 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 gpsd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:gpsd_t:s0-s0:c0.c1023
:Target Context                system_u:system_r:kernel_t:s0
:Target Objects                 [ system ]
:Source                        gpsd
:Source Path                   /usr/sbin/gpsd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           gpsd-3.5-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-121.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.4-5.fc17.x86_64 #1 SMP
:                              Mon May 7 17:29:34 UTC 2012 x86_64 x86_64
:Alert Count                   3
:First Seen                    Sun 20 May 2012 06:09:36 PM CEST
:Last Seen                     Sun 20 May 2012 06:19:16 PM CEST
:Local ID                      a2554963-d6f5-4d9d-93bb-00cc2d07de69
:
:Raw Audit Messages
:type=AVC msg=audit(1337530756.194:21635): avc:  denied  { module_request } for  pid=8000 comm="gpsd" kmod="tty-ldisc-18" scontext=unconfined_u:unconfined_r:gpsd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:kernel_t:s0 tclass=system
:
:
:type=SYSCALL msg=audit(1337530756.194:21635): arch=x86_64 syscall=ioctl success=no exit=EINVAL a0=6 a1=5423 a2=7fea8baf9c28 a3=8 items=0 ppid=7957 pid=8000 auid=1000 uid=99 gid=18 euid=99 suid=99 fsuid=99 egid=18 sgid=18 fsgid=18 tty=(none) ses=480 comm=gpsd exe=/usr/sbin/gpsd subj=unconfined_u:unconfined_r:gpsd_t:s0-s0:c0.c1023 key=(null)
:
:Hash: gpsd,gpsd_t,kernel_t,system,module_request
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-05-21 10:57:15 UTC
Fixed in selinux-policy-3.10.0-126.fc17.noarch

Comment 2 Fedora Update System 2012-05-31 06:26:31 UTC
selinux-policy-3.10.0-128.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-128.fc17

Comment 3 Fedora Update System 2012-06-01 17:08:41 UTC
Package selinux-policy-3.10.0-128.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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-128.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-8720/selinux-policy-3.10.0-128.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-06-03 23:31:11 UTC
selinux-policy-3.10.0-128.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.