Bug 1440207 - selinux denial for gnome-shell when loopback file is mounted
Summary: selinux denial for gnome-shell when loopback file is mounted
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-shell
Version: 25
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Owen Taylor
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-07 14:52 UTC by Zygmunt Krynicki
Modified: 2017-12-12 10:24 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:24:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zygmunt Krynicki 2017-04-07 14:52:46 UTC
Description of problem:


Version-Release number of selected component (if applicable):

gnome-shell 3.22.3-1.fc25

How reproducible:


Steps to Reproduce:
1. mount a squashfs file
2. log in
3. see the denial for gnome-shell

Actual results:
- selinux denial as seen below

Expected results:
- nothing is denied

Additional info:


Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:xdm_var_lib_t:s0
Target Objects                2F7661722F6C69622F67646D2F23353338313332202864656C
                              6574656429 [ file ]
Source                        gnome-shell
Source Path                   gnome-shell
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.11.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain 4.10.8-200.fc25.x86_64
                              #1 SMP Fri Mar 31 13:20:22 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-04-07 16:40:32 CEST
Last Seen                     2017-04-07 16:40:32 CEST
Local ID                      94018c26-faea-4e0e-a367-bb446ab7a383

Raw Audit Messages
type=AVC msg=audit(1491576032.673:194): avc:  denied  { execute } for  pid=1044 comm="gnome-shell" path=2F7661722F6C69622F67646D2F23353338313332202864656C6574656429 dev="dm-0" ino=538132 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xdm_var_lib_t:s0 tclass=file permissive=0


Hash: gnome-shell,xdm_t,xdm_var_lib_t,file,execute

Comment 1 Zygmunt Krynicki 2017-04-07 14:54:15 UTC
The suggested automatically generated rule is:

module my-gnomeshell 1.0;

require {
	type loop_control_device_t;
	type xdm_t;
	type xdm_var_lib_t;
	class chr_file getattr;
	class file execute;
}

#============= xdm_t ==============
allow xdm_t loop_control_device_t:chr_file getattr;
allow xdm_t xdm_var_lib_t:file execute;

Comment 2 Fedora End Of Life 2017-11-16 19:31:35 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2017-12-12 10:24:19 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 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
bug.

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


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