Bug 746356 - SELinux is preventing /usr/sbin/gpsd from 'ioctl' accesses on the chr_file /dev/ttyUSB2.
Summary: SELinux is preventing /usr/sbin/gpsd from 'ioctl' accesses on the chr_file /d...
Keywords:
Status: CLOSED DUPLICATE of bug 746358
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2bfa1a40e286f84a3ec8d68aed9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-14 22:08 UTC by Sergei LITVINENKO
Modified: 2011-10-17 09:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-17 09:03:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sergei LITVINENKO 2011-10-14 22:08:31 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc9.git0.2.fc16.i686.PAE
reason:         SELinux is preventing /usr/sbin/gpsd from 'ioctl' accesses on the chr_file /dev/ttyUSB2.
time:           Sat Oct 15 01:08:01 2011

description:
:SELinux is preventing /usr/sbin/gpsd from 'ioctl' accesses on the chr_file /dev/ttyUSB2.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that gpsd should be allowed ioctl access on the ttyUSB2 chr_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 gpsd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:gpsd_t:s0
:Target Context                system_u:object_r:usbtty_device_t:s0
:Target Objects                /dev/ttyUSB2 [ chr_file ]
:Source                        gpsd
:Source Path                   /usr/sbin/gpsd
:Port                          <Неизвестно>
:Host                          (removed)
:Source RPM Packages           gpsd-2.95-7.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-38.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.1.0-0.rc9.git0.2.fc16.i686.PAE #1 SMP Wed Oct 12
:                              13:37:21 UTC 2011 i686 i686
:Alert Count                   2
:First Seen                    Сб. 15 окт. 2011 00:07:14
:Last Seen                     Сб. 15 окт. 2011 00:07:14
:Local ID                      5b5c3baf-b80d-49e6-859f-664790dd55fa
:
:Raw Audit Messages
:type=AVC msg=audit(1318630034.675:125): avc:  denied  { ioctl } for  pid=3068 comm="gpsd" path="/dev/ttyUSB2" dev=devtmpfs ino=1999 scontext=system_u:system_r:gpsd_t:s0 tcontext=system_u:object_r:usbtty_device_t:s0 tclass=chr_file
:
:
:type=SYSCALL msg=audit(1318630034.675:125): arch=i386 syscall=ioctl success=yes exit=0 a0=7 a1=5401 a2=bf9f0168 a3=bf9f01b4 items=0 ppid=1 pid=3068 auid=4294967295 uid=99 gid=18 euid=99 suid=99 fsuid=99 egid=18 sgid=18 fsgid=18 tty=(none) ses=4294967295 comm=gpsd exe=/usr/sbin/gpsd subj=system_u:system_r:gpsd_t:s0 key=(null)
:
:Hash: gpsd,gpsd_t,usbtty_device_t,chr_file,ioctl
:
:audit2allow
:
:#============= gpsd_t ==============
:allow gpsd_t usbtty_device_t:chr_file ioctl;
:
:audit2allow -R
:
:#============= gpsd_t ==============
:allow gpsd_t usbtty_device_t:chr_file ioctl;
:

Comment 1 Miroslav Grepl 2011-10-17 09:03:08 UTC

*** This bug has been marked as a duplicate of bug 746358 ***


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