Bug 1601274 - 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: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c9a1a64dd962a62feb3b665bb7c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-15 21:42 UTC by shmuel
Modified: 2018-07-22 11:42 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-07-22 11:42:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description shmuel 2018-07-15 21:42:26 UTC
Description of problem:
SELinux is preventing mount from 'open' accesses on the chr_file /dev/loop-control.

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

Si cree que de manera predeterminada se debería permitir a mount el acceso open sobre  loop-control chr_file.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
permita el acceso temporalmente ejecutando:
# ausearch -c 'mount' --raw | audit2allow -M mi-mount
# semodule -X 300 -i mi-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                          <Desconocido>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-32.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.17.5-200.fc28.x86_64 #1 SMP Tue
                              Jul 10 13:39:04 UTC 2018 x86_64 x86_64
Alert Count                   2
First Seen                    2018-07-15 16:31:51 CDT
Last Seen                     2018-07-15 16:35:40 CDT
Local ID                      a5110069-0ab4-4b0e-af3a-61aa637660fb

Raw Audit Messages
type=AVC msg=audit(1531690540.788:233): avc:  denied  { open } for  pid=2385 comm="mount" path="/dev/loop-control" dev="devtmpfs" ino=17945 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.1-32.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.17.5-200.fc28.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2018-07-22 11:42:42 UTC

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


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