Bug 1481555 - SELinux is preventing gnome-shell from 'map' accesses on the file /etc/udev/hwdb.bin.
Summary: SELinux is preventing gnome-shell from 'map' accesses on the file /etc/udev/h...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:092c2e6d70ef347713af24d73ac...
Depends On:
Blocks: 1481454
TreeView+ depends on / blocked
 
Reported: 2017-08-15 05:23 UTC by Adam Williamson
Modified: 2018-02-20 11:21 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-3.13.1-277.fc27
Clone Of:
Environment:
Last Closed: 2018-02-20 11:21:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2017-08-15 05:23:42 UTC
Description of problem:
Happened in normal system use after the 'map' permission was introduced.
SELinux is preventing gnome-shell from 'map' accesses on the file /etc/udev/hwdb.bin.

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

If you believe that gnome-shell should be allowed map access on the hwdb.bin 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:
# ausearch -c 'gnome-shell' --raw | audit2allow -M my-gnomeshell
# semodule -X 300 -i my-gnomeshell.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:systemd_hwdb_etc_t:s0
Target Objects                /etc/udev/hwdb.bin [ file ]
Source                        gnome-shell
Source Path                   gnome-shell
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           systemd-udev-234-5.fc27.x86_64
Policy RPM                    selinux-policy-3.13.1-270.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.13.0-0.rc4.git4.1.fc27.x86_64 #1
                              SMP Fri Aug 11 15:03:46 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-08-14 09:21:54 PDT
Last Seen                     2017-08-14 09:21:54 PDT
Local ID                      3d4f9eb6-fd72-4548-8186-2ec2e73246d1

Raw Audit Messages
type=AVC msg=audit(1502727714.168:310): avc:  denied  { map } for  pid=1580 comm="gnome-shell" path="/etc/udev/hwdb.bin" dev="dm-2" ino=275 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_hwdb_etc_t:s0 tclass=file permissive=1


Hash: gnome-shell,xdm_t,systemd_hwdb_etc_t,file,map

Version-Release number of selected component:
selinux-policy-3.13.1-270.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.13.0-0.rc4.git4.1.fc27.x86_64
type:           libreport

Comment 1 Adam Williamson 2017-08-18 22:35:49 UTC
Description of problem:
Happened during normal system use. Note, happens even with selinux-policy 3.13.1-272 (with the initial set of 'map' permission fixes).

Version-Release number of selected component:
selinux-policy-3.13.1-272.fc27.noarch

Additional info:
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.13.0-0.rc5.git2.1.fc27.x86_64
type:           libreport


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