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 1572712 - SELinux is preventing systemd from 'map_create' accesses on the bpf Unknown.
Summary: SELinux is preventing systemd from 'map_create' accesses on the bpf Unknown.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:de801fce3ce440bdbb87e78f595...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-27 16:44 UTC by Mikhail
Modified: 2019-03-29 07:08 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.14.2-15.fc29 selinux-policy-3.14.2-34.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-12 03:00:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2018-04-27 16:44:11 UTC
Description of problem:
SELinux is preventing systemd from 'map_create' accesses on the bpf Unknown.

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

If you believe that systemd should be allowed map_create access on the Unknown bpf 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                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
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-12.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.17.0-0.rc1.git3.1.fc29.x86_64 #1
                              SMP Fri Apr 20 16:44:11 UTC 2018 x86_64 x86_64
Alert Count                   4
First Seen                    2018-04-27 01:49:09 +05
Last Seen                     2018-04-27 21:39:00 +05
Local ID                      387ba656-7504-4674-9bcb-8f14c0b8a1ff

Raw Audit Messages
type=AVC msg=audit(1524847140.218:343): avc:  denied  { map_create } for  pid=10186 comm="systemd" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=bpf permissive=0


Hash: systemd,unconfined_t,unconfined_t,bpf,map_create

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.4
hashmarkername: setroubleshoot
kernel:         4.17.0-0.rc1.git3.1.fc29.x86_64
type:           libreport

Comment 1 Jan Kurik 2018-08-14 11:19:39 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 2 Fedora Update System 2018-09-11 12:54:05 UTC
selinux-policy-3.14.2-34.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-db240a1726

Comment 3 Fedora Update System 2018-09-12 03:00:44 UTC
selinux-policy-3.14.2-34.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 4 Maciek Borzecki 2019-03-29 07:08:21 UTC
Should the policy allow unconfined_service_t as well?


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