Bug 981073 - SELinux is preventing /usr/sbin/ldconfig from 'add_name' accesses on the directory ld.so.cache~.
Summary: SELinux is preventing /usr/sbin/ldconfig from 'add_name' accesses on the dire...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8f873e1122551325390d488e22c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-03 23:39 UTC by Martin Bříza
Modified: 2013-07-12 12:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-12 12:39:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Martin Bříza 2013-07-03 23:39:29 UTC
Description of problem:
Happens when trying to start iceccd to be able to use the distributed compiler
SELinux is preventing /usr/sbin/ldconfig from 'add_name' accesses on the directory ld.so.cache~.

Happens when trying to start iceccd to be able to compile using icecream scheduler on an other machine

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

If you believe that ldconfig should be allowed add_name access on the ld.so.cache~ directory 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:
# grep ldconfig /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:ldconfig_t:s0
Target Context                system_u:object_r:initrc_tmp_t:s0
Target Objects                ld.so.cache~ [ dir ]
Source                        ldconfig
Source Path                   /usr/sbin/ldconfig
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           glibc-2.17-11.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-54.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.8-300.fc19.x86_64 #1 SMP Thu
                              Jun 27 19:24:23 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-07-04 01:35:22 CEST
Last Seen                     2013-07-04 01:35:22 CEST
Local ID                      dbf960e9-629e-4fe7-8cde-4a6803b719a8

Raw Audit Messages
type=AVC msg=audit(1372894522.134:1642): avc:  denied  { add_name } for  pid=12541 comm="ldconfig" name="ld.so.cache~" scontext=system_u:system_r:ldconfig_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=dir


type=SYSCALL msg=audit(1372894522.134:1642): arch=x86_64 syscall=open success=no exit=EACCES a0=12bed20 a1=20241 a2=180 a3=23 items=0 ppid=11987 pid=12541 auid=4294967295 uid=990 gid=987 euid=990 suid=990 fsuid=990 egid=987 sgid=987 fsgid=987 ses=4294967295 tty=(none) comm=ldconfig exe=/usr/sbin/ldconfig subj=system_u:system_r:ldconfig_t:s0 key=(null)

Hash: ldconfig,ldconfig_t,initrc_tmp_t,dir,add_name

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.9.8-300.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-07-10 22:52:01 UTC
restorecon -R -v /etc

Since you have a mislabeled file in /etc


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