Bug 1558949 - SELinux is preventing systemd from using the 'mac_admin' capabilities.
Summary: SELinux is preventing systemd from using the 'mac_admin' capabilities.
Keywords:
Status: CLOSED DUPLICATE of bug 1558816
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e2850307483b43561486e37342c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-21 11:46 UTC by Stephen Gallagher
Modified: 2018-03-22 11:42 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-03-22 11:42:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stephen Gallagher 2018-03-21 11:46:19 UTC
Description of problem:
SELinux is preventing systemd from using the 'mac_admin' capabilities.

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

If you believe that systemd should have the mac_admin capability 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:init_t:s0
Target Context                system_u:system_r:init_t:s0
Target Objects                Unknown [ capability2 ]
Source                        systemd
Source Path                   systemd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-14.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.0-0.rc4.git0.1.fc28.x86_64 #1
                              SMP Mon Mar 5 04:54:32 UTC 2018 x86_64 x86_64
Alert Count                   18
First Seen                    2018-03-20 09:34:01 EDT
Last Seen                     2018-03-21 07:42:49 EDT
Local ID                      1af8ef97-ef39-4bde-81de-ef0e03136c7e

Raw Audit Messages
type=AVC msg=audit(1521632569.655:101): avc:  denied  { mac_admin } for  pid=1 comm="systemd" capability=33  scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=capability2 permissive=0


Hash: systemd,init_t,init_t,capability2,mac_admin

Version-Release number of selected component:
selinux-policy-3.14.1-14.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.16.0-0.rc4.git0.1.fc28.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2018-03-22 11:42:43 UTC

*** This bug has been marked as a duplicate of bug 1558816 ***


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