Bug 1336178

Summary: SELinux is preventing /usr/sbin/gpsd from using the 'getsession' accesses on a process.
Product: [Fedora] Fedora Reporter: Claude Frantz <Claude.Frantz>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 22CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:be0127b7ffd512c1026168720ba290797b1aa66e680b0ca04abd3167da1086e8;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 20:45:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Claude Frantz 2016-05-15 08:44:34 UTC
Description of problem:
SELinux is preventing /usr/sbin/gpsd from using the 'getsession' accesses on a process.

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

If you believe that gpsd should be allowed getsession access on processes labeled gpsd_t by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
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:system_r:gpsd_t:s0
Target Objects                Unknown [ process ]
Source                        gpsd
Source Path                   /usr/sbin/gpsd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gpsd-3.11-1.fc22.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.28.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.4.8-200.fc22.i686+PAE #1 SMP Wed
                              Apr 20 18:56:14 UTC 2016 i686 i686
Alert Count                   3
First Seen                    2016-05-15 10:41:43 CEST
Last Seen                     2016-05-15 10:41:43 CEST
Local ID                      3056ef26-1274-4996-92b6-e6aff92b7d5f

Raw Audit Messages
type=AVC msg=audit(1463301703.886:564): avc:  denied  { getsession } for  pid=679 comm="gpsd" scontext=system_u:system_r:gpsd_t:s0 tcontext=system_u:system_r:gpsd_t:s0 tclass=process permissive=0

type=SYSCALL msg=audit(1463301703.886:564): arch=i386 syscall=getsid success=no exit=EACCES a0=2a7 a1=7ffffffe a2=b763adb4 a3=2a7 items=0 ppid=1 pid=679 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,gpsd_t,process,getsession

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.8-200.fc22.i686+PAE
type:           libreport

Potential duplicate: bug 1206318

Comment 1 Fedora End Of Life 2016-07-19 20:45:33 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.