Bug 1542933 - SELinux is preventing restorecon from 'map' accesses on the fichier /etc/ld.so.cache.
Summary: SELinux is preventing restorecon from 'map' accesses on the fichier /etc/ld.s...
Keywords:
Status: CLOSED DUPLICATE of bug 1543153
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1eb1a28a01a95b3b3a982e31f2a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-07 11:55 UTC by istaff
Modified: 2018-03-10 14:26 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-10 14:26:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description istaff 2018-02-07 11:55:08 UTC
Description of problem:
SELinux is preventing restorecon from 'map' accesses on the fichier /etc/ld.so.cache.

*****  Plugin restorecon (94.8 confidence) suggests   ************************

Si vous souhaitez corriger l'étiquette. 
L'étiquette par défaut de /etc/ld.so.cache devrait être ld_so_cache_t.
Then vous pouvez lancer restorecon. La tentative d’accès pourrait avoir été stoppée due à des permissions insuffisantes d’accès au dossier parent, auquel cas essayez de changer la commande suivante en conséquence.
Do
# /sbin/restorecon -v /etc/ld.so.cache

*****  Plugin catchall_labels (5.21 confidence) suggests   *******************

Si vous souhaitez autoriser restorecon à accéder à map sur ld.so.cache file
Then l'étiquette sur /etc/ld.so.cache doit être modifiée.
Do
# semanage fcontext -a -t FILE_TYPE '/etc/ld.so.cache'
où FILE_TYPE est l'une des valeurs suivantes : file_context_t, fonts_t, initrc_exec_t, ld_so_cache_t, ld_so_t, lib_t, locale_t, prelink_exec_t, setfiles_exec_t, textrel_shlib_t. 
Puis exécutez : 
restorecon -v '/etc/ld.so.cache'


*****  Plugin catchall (1.44 confidence) suggests   **************************

Si vous pensez que restorecon devrait être autorisé à accéder map sur ld.so.cache file 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                system_u:system_r:setfiles_t:s0
Target Context                system_u:object_r:etc_t:s0
Target Objects                /etc/ld.so.cache [ file ]
Source                        restorecon
Source Path                   restorecon
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           glibc-2.26-15.fc27.x86_64
Policy RPM                    selinux-policy-3.13.1-283.14.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.13.12-200.fc26.x86_64 #1 SMP Wed
                              Nov 8 16:47:26 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-11-14 19:38:46 CET
Last Seen                     2017-11-14 19:38:46 CET
Local ID                      2750d561-09fa-4a12-ae8e-8d6b17f9a151

Raw Audit Messages
type=AVC msg=audit(1510684726.816:146): avc:  denied  { map } for  pid=6040 comm="restorecon" path="/etc/ld.so.cache" dev="sdb2" ino=1835186 scontext=system_u:system_r:setfiles_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0


Hash: restorecon,setfiles_t,etc_t,file,map

Version-Release number of selected component:
selinux-policy-3.13.1-283.14.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.14.16-300.fc27.x86_64
type:           libreport

Comment 1 istaff 2018-02-07 11:57:49 UTC
It's always at the boot of fedora, when desktop appear I have this alert...

Comment 2 Lukas Vrabec 2018-03-10 14:26:38 UTC

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


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