Bug 1371233 - SELinux is preventing /usr/libexec/geoclue from 'sendto' accesses on the unix_dgram_socket /run/systemd/journal/socket.
Summary: SELinux is preventing /usr/libexec/geoclue from 'sendto' accesses on the unix...
Keywords:
Status: CLOSED DUPLICATE of bug 1370925
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2ce90a3d30b191e3a443f7e8366...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-29 16:41 UTC by Stephen Gallagher
Modified: 2016-08-30 12:14 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-30 12:14:57 UTC
Type: ---


Attachments (Terms of Use)

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 ***


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