Bug 1262241 - SELinux is preventing /bin/mount from 'remount' accesses on the filesystem .
SELinux is preventing /bin/mount from 'remount' accesses on the filesystem .
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
22
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:a2383d1b5982f98198583587dfd...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-11 05:08 EDT by Yajo
Modified: 2015-09-11 07:29 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-09-11 07:24:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Yajo 2015-09-11 05:08:35 EDT
Description of problem:
1. docker run -it --rm -p 25:25 -p 80:80 -p 443:443 -p 465:465 -p 993:993 -p 5222:5222 -p 5269:5269 -p 5290:5290 docker.io/yunohost/full /sbin/init
2. Visit https://localhost
3. Follow installation steps
SELinux is preventing /bin/mount from 'remount' accesses on the filesystem .

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

If cree que de manera predeterminada, mount debería permitir acceso remount sobre   filesystem.     
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 momentáneamente executando:
# grep mount /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:svirt_lxc_net_t:s0:c478,c921
Target Context                system_u:object_r:svirt_sandbox_file_t:s0:c478,c92
                              1
Target Objects                 [ filesystem ]
Source                        mount
Source Path                   /bin/mount
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           util-linux-2.26.2-3.fc22.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.12.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.1.6-200.fc22.x86_64 #1 SMP Mon
                              Aug 17 19:54:31 UTC 2015 x86_64 x86_64
Alert Count                   3
First Seen                    2015-09-11 11:07:08 CEST
Last Seen                     2015-09-11 11:07:08 CEST
Local ID                      b835b612-4834-454c-a9db-625474c3f646

Raw Audit Messages
type=AVC msg=audit(1441962428.948:916): avc:  denied  { remount } for  pid=23571 comm="mount" scontext=system_u:system_r:svirt_lxc_net_t:s0:c478,c921 tcontext=system_u:object_r:svirt_sandbox_file_t:s0:c478,c921 tclass=filesystem permissive=0


type=SYSCALL msg=audit(1441962428.948:916): arch=x86_64 syscall=mount success=no exit=EACCES a0=13730e0 a1=136e980 a2=136e7e0 a3=200021 items=0 ppid=23563 pid=23571 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=mount exe=/bin/mount subj=system_u:system_r:svirt_lxc_net_t:s0:c478,c921 key=(null)

Hash: mount,svirt_lxc_net_t,svirt_sandbox_file_t,filesystem,remount

Version-Release number of selected component:
selinux-policy-3.13.1-128.12.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.6-200.fc22.x86_64
type:           libreport
Comment 1 Daniel Walsh 2015-09-11 07:24:26 EDT
All mount commands are blocked in non privileged containers.

You would probably need to run this with --privileged
Comment 2 Yajo 2015-09-11 07:29:29 EDT
Ah thanks.

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