Bug 1627956 - SELinux is preventing geoclue from write access on the directory /dev/shm.
Summary: SELinux is preventing geoclue from write access on the directory /dev/shm.
Keywords:
Status: CLOSED DUPLICATE of bug 1625632
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-12 00:37 UTC by Chris Murphy
Modified: 2018-09-16 20:26 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-09-16 20:26:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
journal snippet (23.33 KB, text/plain)
2018-09-12 00:38 UTC, Chris Murphy
no flags Details

Description Chris Murphy 2018-09-12 00:37:24 UTC
I get a notification of this upon boot and login to GNOME Shell, without having launched anything else.


SELinux is preventing geoclue from write access on the directory /dev/shm.

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

If you believe that geoclue should be allowed write access on the shm directory 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:object_r:tmpfs_t:s0
Target Objects                /dev/shm [ dir ]
Source                        geoclue
Source Path                   geoclue
Port                          <Unknown>
Host                          f28h.local
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-34.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     f28h.local
Platform                      Linux f28h.local 4.18.7-300.fc29.x86_64 #1 SMP Mon
                              Sep 10 15:37:17 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-09-11 18:31:47 MDT
Last Seen                     2018-09-11 18:31:47 MDT
Local ID                      8fc6eb23-d8de-429a-b00e-5be3a1b975f5

Raw Audit Messages
type=AVC msg=audit(1536712307.965:241): avc:  denied  { write } for  pid=1603 comm="geoclue" name="/" dev="tmpfs" ino=3349 scontext=system_u:system_r:geoclue_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir permissive=0


Hash: geoclue,geoclue_t,tmpfs_t,dir,write

Comment 1 Chris Murphy 2018-09-12 00:38:38 UTC
Created attachment 1482516 [details]
journal snippet

[chris@f29h ~]$ sudo journalctl -b | grep -C10 geoclue

Comment 2 Lukas Vrabec 2018-09-16 20:26:38 UTC

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


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