Bug 1694115 - SELinux is preventing systemd from 'map_create' accesses on the bpf labeled unconfined_service_t.
Summary: SELinux is preventing systemd from 'map_create' accesses on the bpf labeled u...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 29
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-29 14:46 UTC by Maciek Borzecki
Modified: 2019-04-08 06:03 UTC (History)
1 user (show)

Fixed In Version: selinux-policy-3.14.2-53.fc29
Clone Of:
Environment:
Last Closed: 2019-04-08 01:52:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Maciek Borzecki 2019-03-29 14:46:01 UTC
Description of problem:

When working on some SELinux enhancements to snapd, I got this:

----
time->Thu Mar 28 15:09:46 2019
type=AVC msg=audit(1553785786.977:906): avc:  denied  { map_create } for  pid=31513 comm="systemd" scontext=system_u:system_r:unconfined_service_t:s0 tcontext=system_u:system_r:unconfined_service_t:s0 tclass=bpf permissive=0
----

Since we already allow map_create for unconfined_t, we should perhaps allow it for unconfined_service_t too.

Version-Release number of selected component (if applicable):
selinux-policy-3.14.2-49.fc29.noarch
selinux-policy-devel-3.14.2-49.fc29.noarch
selinux-policy-targeted-3.14.2-49.fc29.noarch


How reproducible:
always

Comment 1 Lukas Vrabec 2019-04-01 11:26:53 UTC
commit 3fdfab205c1fe9cfe2f29fe128934d91d553e010
Author: Lukas Vrabec <lvrabec>
Date:   Mon Apr 1 13:25:30 2019 +0200

    Allow unconfined_domain_type to use bpf tools BZ(1694115)

Comment 2 Fedora Update System 2019-04-05 17:27:42 UTC
selinux-policy-3.14.2-53.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-bf377d92c7

Comment 3 Fedora Update System 2019-04-06 20:51:02 UTC
selinux-policy-3.14.2-53.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-bf377d92c7

Comment 4 Fedora Update System 2019-04-08 01:52:50 UTC
selinux-policy-3.14.2-53.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Maciek Borzecki 2019-04-08 06:03:33 UTC
Thank you for the fix!


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