Bug 1699358 - SELinux is preventing mount from 'open' accesses on the chr_file /dev/loop-control.
Summary: SELinux is preventing mount from 'open' accesses on the chr_file /dev/loop-co...
Keywords:
Status: CLOSED DUPLICATE of bug 1601273
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 30
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c9a1a64dd962a62feb3b665bb7c...
: 1714327 1716035 1718533 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-12 13:59 UTC by Abhisek Mukherjee
Modified: 2019-06-08 11:08 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-04-12 14:17:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Abhisek Mukherjee 2019-04-12 13:59:27 UTC
Description of problem:
SELinux is preventing mount from 'open' accesses on the chr_file /dev/loop-control.

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

If you believe that mount should be allowed open access on the loop-control chr_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 'mount' --raw | audit2allow -M my-mount
# semodule -X 300 -i my-mount.pp

Additional Information:
Source Context                system_u:system_r:snappy_t:s0
Target Context                system_u:object_r:loop_control_device_t:s0
Target Objects                /dev/loop-control [ chr_file ]
Source                        mount
Source Path                   mount
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.3-28.fc30.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.0.7-300.fc30.x86_64 #1 SMP Mon
                              Apr 8 18:28:09 UTC 2019 x86_64 x86_64
Alert Count                   2
First Seen                    2019-04-12 19:24:25 IST
Last Seen                     2019-04-12 19:24:36 IST
Local ID                      b776a6f1-c066-41fc-8c03-00bc264d8473

Raw Audit Messages
type=AVC msg=audit(1555077276.955:289): avc:  denied  { open } for  pid=2257 comm="mount" path="/dev/loop-control" dev="devtmpfs" ino=2888 scontext=system_u:system_r:snappy_t:s0 tcontext=system_u:object_r:loop_control_device_t:s0 tclass=chr_file permissive=1


Hash: mount,snappy_t,loop_control_device_t,chr_file,open

Version-Release number of selected component:
selinux-policy-3.14.3-28.fc30.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.0.7-300.fc30.x86_64
type:           libreport

Potential duplicate: bug 1601274

Comment 1 Zdenek Pytela 2019-04-12 14:17:41 UTC

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

Comment 2 Jeremy 2019-05-27 17:32:20 UTC
*** Bug 1714327 has been marked as a duplicate of this bug. ***

Comment 3 Jeremy 2019-06-01 08:08:56 UTC
*** Bug 1716035 has been marked as a duplicate of this bug. ***

Comment 4 Jeremy 2019-06-08 11:08:49 UTC
*** Bug 1718533 has been marked as a duplicate of this bug. ***


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