Bug 1371233

Summary: SELinux is preventing /usr/libexec/geoclue from 'sendto' accesses on the unix_dgram_socket /run/systemd/journal/socket.
Product: [Fedora] Fedora Reporter: Stephen Gallagher <sgallagh>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:2ce90a3d30b191e3a443f7e83667aa87df6bcfac462797b6f0b74e9ed0e1197f;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-30 12:14:57 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 Stephen Gallagher 2016-08-29 16:41:20 UTC
Description of problem:
SELinux is preventing /usr/libexec/geoclue from 'sendto' accesses on the unix_dgram_socket /run/systemd/journal/socket.

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

If you believe that geoclue should be allowed sendto access on the socket unix_dgram_socket 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:
# ausearch -c 'geoclue' --raw | audit2allow -M my-geoclue
# semodule -X 300 -i my-geoclue.pp

Additional Information:
Source Context                system_u:system_r:geoclue_t:s0
Target Context                system_u:system_r:kernel_t:s0
Target Objects                /run/systemd/journal/socket [ unix_dgram_socket ]
Source                        geoclue
Source Path                   /usr/libexec/geoclue
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.0-0.rc2.git3.1.fc25.x86_64 #1
                              SMP Fri Aug 19 14:24:04 UTC 2016 x86_64 x86_64
Alert Count                   4
First Seen                    2016-08-29 09:47:28 EDT
Last Seen                     2016-08-29 11:30:27 EDT
Local ID                      ba4c2cee-facb-4b2d-bddf-df1d14abb202

Raw Audit Messages
type=AVC msg=audit(1472484627.811:316): avc:  denied  { sendto } for  pid=5185 comm="geoclue" path="/run/systemd/journal/socket" scontext=system_u:system_r:geoclue_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket permissive=0


type=SYSCALL msg=audit(1472484627.811:316): arch=x86_64 syscall=sendmsg success=no exit=EACCES a0=9 a1=7ffc2f814d20 a2=4000 a3=0 items=0 ppid=1 pid=5185 auid=4294967295 uid=992 gid=989 euid=992 suid=992 fsuid=992 egid=989 sgid=989 fsgid=989 tty=(none) ses=4294967295 comm=geoclue exe=/usr/libexec/geoclue subj=system_u:system_r:geoclue_t:s0 key=(null)

Hash: geoclue,geoclue_t,kernel_t,unix_dgram_socket,sendto


Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc2.git3.1.fc25.x86_64
type:           libreport

Potential duplicate: bug 1370925

Comment 1 Lukas Vrabec 2016-08-30 12:14:57 UTC

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