Bug 1557275 - SELinux is preventing restorecon from using the 'mac_admin' capabilities.
Summary: SELinux is preventing restorecon 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
high
urgent
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:fbb928db17384b5f75f6660c0e3...
: 1557350 1788455 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-16 11:08 UTC by Jonathan Haas
Modified: 2022-03-20 21:59 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-03-25 00:19:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jonathan Haas 2018-03-16 11:08:36 UTC
Description of problem:
Running restorecon
SELinux is preventing restorecon from using the 'mac_admin' capabilities.

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

If you believe that restorecon should have the mac_admin capability by default.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
allow this access for now by executing:
# ausearch -c 'restorecon' --raw | audit2allow -M my-restorecon
# semodule -X 300 -i my-restorecon.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 [ capability2 ]
Source                        restorecon
Source Path                   restorecon
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-13.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.0-0.rc5.git0.1.fc28.x86_64 #1
                              SMP Mon Mar 12 20:10:40 UTC 2018 x86_64 x86_64
Alert Count                   270
First Seen                    2018-03-16 12:00:45 CET
Last Seen                     2018-03-16 12:06:53 CET
Local ID                      dfa9fea9-51c2-4685-98d8-61a6cc2dbe44

Raw Audit Messages
type=AVC msg=audit(1521198413.133:843): avc:  denied  { mac_admin } for  pid=5069 comm="restorecon" capability=33  scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=capability2 permissive=0


Hash: restorecon,unconfined_t,unconfined_t,capability2,mac_admin

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

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

Potential duplicate: bug 703441

Comment 1 Lukas Vrabec 2018-03-23 14:12:29 UTC
*** Bug 1557350 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Vrabec 2018-03-24 14:13:57 UTC
Hi, 

Did you install clean Fedora 28 or you upgraded from Fedora 27? 

Thanks,
Lukas.

Comment 3 Jonathan Haas 2018-03-24 16:50:21 UTC
I upgraded from 27 and after that I got SELinux warnings that recommended running restorecon, which I did, which generated more warnings.

After that finished and I upgraded to latest package versions, it seems to work fine, though.

Comment 4 Lukas Vrabec 2018-03-25 00:19:57 UTC

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

Comment 5 Lukas Vrabec 2020-01-09 21:22:32 UTC
*** Bug 1788455 has been marked as a duplicate of this bug. ***


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