Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1512560
Summary: | SELinux is preventing firewalld from 'map' accesses on the device /dev/vda1. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michal Ambroz <rebus> | ||||
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> | ||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 27 | CC: | dwalsh, esm, lvrabec, mgrepl, plautrba, rebus | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | selinux-policy-3.13.1-283.16.fc27 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-11-30 22:38:26 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Michal Ambroz
2017-11-13 14:17:10 UTC
Trying firewalld to perform this 'map' access using audit2allow made the firewalld to start: journalctl -xe|grep AVC|grep firewall | audit2allow -M firewallmap semodule -i firewallmap.pp But it brought some additional selinux errors - mostly access to some temporary files in /dev/mqueue/XXXXXXXXX /var/tmp/XXXXXXXXX /dev/shm/XXXXXXXXX /tmp/XXXXXXXXX: journalctl -xe|grep firewalld | cut -d ':' -f 4- |sort -u AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F6465762F6D71756575652F666669334255445343202864656C6574656429 dev="mqueue" ino=89577 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmpfs_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F6465762F6D71756575652F66666934764333754A202864656C6574656429 dev="mqueue" ino=89688 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmpfs_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F6465762F6D71756575652F666669374C71744551202864656C6574656429 dev="mqueue" ino=89682 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmpfs_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F6465762F73686D2F66666930776931346D202864656C6574656429 dev="tmpfs" ino=89703 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmpfs_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F6465762F73686D2F666669314F49423842202864656C6574656429 dev="tmpfs" ino=89613 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmpfs_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F6465762F73686D2F666669316D39317746202864656C6574656429 dev="tmpfs" ino=89575 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmpfs_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F6465762F73686D2F666669336268716832202864656C6574656429 dev="tmpfs" ino=89635 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmpfs_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F72756E2F666669315162576777202864656C6574656429 dev="tmpfs" ino=89580 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_var_run_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F72756E2F66666931535846797A202864656C6574656429 dev="tmpfs" ino=89615 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_var_run_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F72756E2F666669317547626770202864656C6574656429 dev="tmpfs" ino=89660 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_var_run_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F72756E2F66666933523549706B202864656C6574656429 dev="tmpfs" ino=89587 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_var_run_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F746D702F666669335862337A68202864656C6574656429 dev="vda1" ino=2967 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmp_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F746D702F666669336C53706E51202864656C6574656429 dev="vda1" ino=2967 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmp_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F746D702F666669356355304670202864656C6574656429 dev="vda1" ino=2967 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmp_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F746D702F6666693941334D5A78202864656C6574656429 dev="vda1" ino=2967 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmp_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F7661722F746D702F6666693370496F6D61202864656C6574656429 dev="vda1" ino=2967 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmp_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F7661722F746D702F666669337072477863202864656C6574656429 dev="vda1" ino=2967 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmp_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F7661722F746D702F66666933747548665A202864656C6574656429 dev="vda1" ino=2967 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmp_t:s0 tclass=file permissive=0 AVC avc: denied { map } for pid=3884 comm="firewalld" path=2F7661722F746D702F66666935325A417144202864656C6574656429 dev="vda1" ino=2967 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:firewalld_tmp_t:s0 tclass=file permissive=0 AVC avc: denied { write } for pid=3884 comm="firewalld" name="/" dev="vda1" ino=2 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:root_t:s0 tclass=dir permissive=0 Best regards Michal Ambroz selinux-policy-3.13.1-283.16.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-5178e6a393 selinux-policy-3.13.1-283.16.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5178e6a393 selinux-policy-3.13.1-283.16.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. Having the selinux-policy-3.13.1-283.16.fc27, but firewalld doesn't start after reboot. # rpm -q selinux-policy selinux-policy-3.13.1-283.16.fc27.noarch # rpm -q firewalld firewalld-0.4.4.5-3.fc27.noarch #journalctl -xe|grep AVC|grep firewall Nov 22 18:54:36 hermes.h3x.eu audit[623]: AVC avc: denied { map } for pid=623 comm="firewalld" path="/usr/bin/python3.6" dev="vda1" ino=53103 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file permissive=0 Seems to be still related to denied map on vda1 device. After adding that "allow firewalld_t bin_t:file map;" - the firewalld starts, but still is complaining about lots of stuff on root device. Log attached. Created attachment 1357767 [details]
firewalld.log
firewalld log after install of selinux-policy-3.13.1-283.16.fc27.noarch
This message is a reminder that Fedora 27 is nearing its end of life. On 2018-Nov-30 Fedora will stop maintaining and issuing updates for Fedora 27. 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 '27'. 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 27 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. Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 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. |