Bug 1764543 - 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 1764541
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 30
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1dc43931c1cd6f76536841a3456...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-23 09:49 UTC by Cocci Satch
Modified: 2019-10-23 09:56 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-10-23 09:56:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: CameraZOOM-20191021204545113.jpg (9.36 MB, application/octet-stream)
2019-10-23 09:50 UTC, Cocci Satch
no flags Details
File: CameraZOOM-20191021204602496.jpg (7.94 MB, application/octet-stream)
2019-10-23 09:50 UTC, Cocci Satch
no flags Details

Description Cocci Satch 2019-10-23 09:49:54 UTC
Description of problem:
Hello,

I have this problem since the update of October 21, which caused a panic kernel, so I start on the previous kernel and I have this error.
SELinux is preventing restorecon from using the 'mac_admin' capabilities.

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

Si vous pensez que restorecon devrait avoir des capacités mac_admin par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# ausearch -c "restorecon" --raw | audit2allow -M my-restorecon
# semodule -X 300 -i my-restorecon.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c102
                              3
Target Context                unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c102
                              3
Target Objects                Inconnu [ capability2 ]
Source                        restorecon
Source Path                   restorecon
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Inconnu>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.2.15-200.fc30.x86_64 #1 SMP Mon
                              Sep 16 15:17:36 UTC 2019 x86_64 x86_64
Alert Count                   2
First Seen                    2019-10-21 08:30:37 CEST
Last Seen                     2019-10-21 08:30:37 CEST
Local ID                      09e386fa-dab8-4765-b3f4-86094efb2941

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


Hash: restorecon,setfiles_t,setfiles_t,capability2,mac_admin


Additional info:
component:      selinux-policy
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.2.15-200.fc30.x86_64
type:           libreport

Potential duplicate: bug 714136

Comment 1 Cocci Satch 2019-10-23 09:50:18 UTC
Created attachment 1628248 [details]
File: CameraZOOM-20191021204545113.jpg

Comment 2 Cocci Satch 2019-10-23 09:50:42 UTC
Created attachment 1628249 [details]
File: CameraZOOM-20191021204602496.jpg

Comment 3 Lukas Vrabec 2019-10-23 09:56:54 UTC

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


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