Bug 1662612 - SELinux is preventing systemd from 'prog_load' accesses on the bpf labeled virtd_lxc_t.
Summary: SELinux is preventing systemd from 'prog_load' accesses on the bpf labeled vi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:47944b5622c9d9e72fb8311b405...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-31 00:57 UTC by Prasanna V. Loganathar
Modified: 2019-01-17 02:16 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.14.2-46.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-17 02:16:55 UTC


Attachments (Terms of Use)

Description Prasanna V. Loganathar 2018-12-31 00:57:45 UTC
Description of problem:
Running LXC containers from virt-manager
SELinux is preventing systemd from 'prog_load' accesses on the bpf labeled virtd_lxc_t.

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

If you believe that systemd should be allowed prog_load access on bpf labeled virtd_lxc_t 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 'systemd' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp

Additional Information:
Source Context                system_u:system_r:virtd_lxc_t:s0-s0:c0.c1023
Target Context                system_u:system_r:virtd_lxc_t:s0-s0:c0.c1023
Target Objects                Unknown [ bpf ]
Source                        systemd
Source Path                   systemd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-44.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.19.10-300.fc29.x86_64 #1 SMP Mon
                              Dec 17 15:34:44 UTC 2018 x86_64 x86_64
Alert Count                   2
First Seen                    2018-12-31 01:18:38 IST
Last Seen                     2018-12-31 01:21:21 IST
Local ID                      5d16cea7-2df7-4fd8-8818-8f690a1ee0e4

Raw Audit Messages
type=AVC msg=audit(1546199481.489:905): avc:  denied  { prog_load } for  pid=16139 comm="systemd" scontext=system_u:system_r:virtd_lxc_t:s0-s0:c0.c1023 tcontext=system_u:system_r:virtd_lxc_t:s0-s0:c0.c1023 tclass=bpf permissive=1


Hash: systemd,virtd_lxc_t,virtd_lxc_t,bpf,prog_load

Version-Release number of selected component:
selinux-policy-3.14.2-44.fc29.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.7
hashmarkername: setroubleshoot
kernel:         4.19.10-300.fc29.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-01-10 17:44:53 UTC
commit 8179645ec28306e38fd37dce86d9c1cd21ec7728 (HEAD -> rawhide)
Author: Lukas Vrabec <lvrabec@redhat.com>
Date:   Thu Jan 10 18:44:23 2019 +0100

    Allow virtd_lxc_t domains use BPF BZ(1662613)

Comment 2 Fedora Update System 2019-01-13 15:45:14 UTC
selinux-policy-3.14.2-46.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6a20cfef61

Comment 3 Fedora Update System 2019-01-14 03:03:26 UTC
selinux-policy-3.14.2-46.fc29 has been pushed to the Fedora 29 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-2019-6a20cfef61

Comment 4 Fedora Update System 2019-01-17 02:16:55 UTC
selinux-policy-3.14.2-46.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


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