Bug 1726166
Summary: | the lvmdbusd service runs as unconfined_service_t | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Milos Malik <mmalik> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | Jan Fiala <jafiala> |
Priority: | medium | ||
Version: | 8.1 | CC: | lvrabec, mmalik, nknazeko, plautrba, ssekidde, zpytela |
Target Milestone: | rc | Keywords: | Patch |
Target Release: | 8.2 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: |
.The `lvmdbusd` service is now confined by SELinux
The `lvmdbusd` service provides a D-Bus API to the logical volume manager (LVM).
Previously, the `lvmdbusd` daemon could not transition to the `lvm_t` context even though the SELinux policy for `lvm_t` was defined. As a consequence, the `lvmdbusd` daemon was executed in the `unconfined_service_t` domain and SELinux labeled `lvmdbusd` as unconfined.
With this update, the `lvmdbusd` executable file has the `lvm_exec_t` context defined and `lvmdbusd` can now be used correctly with SELinux in enforcing mode.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-04-28 16:40:35 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1726199, 1755139 |
Description
Milos Malik
2019-07-02 09:19:10 UTC
PR for Fedora: https://github.com/fedora-selinux/selinux-policy/pull/271# Added gen_context macro in lvm.fc to run lvmdbusd service as lvm_t. Steps to Reproduce: # service lvm2-lvmdbusd start Redirecting to /bin/systemctl start lvm2-lvmdbusd.service # service lvm2-lvmdbusd status Redirecting to /bin/systemctl status lvm2-lvmdbusd.service ● lvm2-lvmdbusd.service - LVM2 D-Bus service Loaded: loaded (/usr/lib/systemd/system/lvm2-lvmdbusd.service; disabled; vendor preset: disabled) Active: active (running) since Wed 2019-08-07 10:59:22 CEST; 12s ago Docs: man:lvmdbusd(8) Main PID: 9587 (lvmdbusd) Tasks: 5 (limit: 4915) Memory: 13.9M CGroup: /system.slice/lvm2-lvmdbusd.service └─9587 /usr/bin/python3 /usr/sbin/lvmdbusd Aug 07 10:59:22 localhost.localdomain systemd[1]: Starting LVM2 D-Bus service... Aug 07 10:59:22 localhost.localdomain systemd[1]: Started LVM2 D-Bus service. # ps -efZ | grep lvmdbusd system_u:system_r:lvm_t:s0 root 9587 1 0 10:59 ? 00:00:00 /usr/bin/python3 /usr/sbin/lvmdbusd # ls -Z /usr/sbin/lvmdbusd system_u:object_r:lvm_exec_t:s0 /usr/sbin/lvmdbusd Actual results: * the lvmdbusd service is confined commit 53ed93382217f9541bb9b125c93ff685046d91e1 (HEAD -> rawhide, origin/rawhide) Author: Nikola Knazekova <nknazeko> Date: Wed Aug 7 13:34:47 2019 +0200 Run lvmdbusd service as lvm_t Label binary /usr/sbin/lvmdbusd as lvm_exec_t to run lvmdbusd service as lvm_t. Lvmdbusd - a service which provides a D-Bus API to the logical volume manager (LVM). Fixed in Fedora Rawhide and Fedora 30. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1773 |