Bug 911600 - SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/sbin/ldconfig.
Summary: SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:66da58ea7a92afe10485bcc3d85...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-15 12:45 UTC by Artur Szymczak
Modified: 2013-02-18 06:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-18 06:59:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Artur Szymczak 2013-02-15 12:45:11 UTC
Description of problem:
I tryed run tuned:
systemctl enable tuned.service
systemctl start tuned.service
SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/sbin/ldconfig.

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

If aby bash powinno mieć domyślnie execute dostęp do ldconfig file.
Then proszę to zgłosić jako błąd.
Można utworzyć lokalny moduł polityki, aby umożliwić ten dostęp.
Do
można tymczasowo zezwolić na ten dostęp wykonując polecenia:
# grep sh /var/log/audit/audit.log | audit2allow -M mojapolityka
# semodule -i mojapolityka.pp

Additional Information:
Source Context                system_u:system_r:tuned_t:s0
Target Context                system_u:object_r:ldconfig_exec_t:s0
Target Objects                /usr/sbin/ldconfig [ file ]
Source                        sh
Source Path                   /usr/bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.2.42-3.fc18.x86_64
Target RPM Packages           glibc-2.16-28.fc18.x86_64
Policy RPM                    selinux-policy-3.11.1-76.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.7-201.fc18.x86_64 #1 SMP Tue
                              Feb 12 22:35:01 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-02-15 13:39:20 CET
Last Seen                     2013-02-15 13:39:20 CET
Local ID                      512eb008-fa2e-4ba0-9b77-089eb9ceddb7

Raw Audit Messages
type=AVC msg=audit(1360931960.252:115): avc:  denied  { execute } for  pid=4471 comm="sh" name="ldconfig" dev="dm-0" ino=7895 scontext=system_u:system_r:tuned_t:s0 tcontext=system_u:object_r:ldconfig_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1360931960.252:115): arch=x86_64 syscall=execve success=no exit=EACCES a0=140aad0 a1=140abd0 a2=1409ba0 a3=18 items=0 ppid=4470 pid=4471 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=sh exe=/usr/bin/bash subj=system_u:system_r:tuned_t:s0 key=(null)

Hash: sh,tuned_t,ldconfig_exec_t,file,execute

audit2allow

#============= tuned_t ==============
allow tuned_t ldconfig_exec_t:file execute;

audit2allow -R

#============= tuned_t ==============
allow tuned_t ldconfig_exec_t:file execute;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.7-201.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-02-15 14:10:23 UTC
Looks like this is fixed in selinux-policy-3.11.1-77.fc18

Comment 2 Artur Szymczak 2013-02-15 14:15:15 UTC
I have fully updated F18 (including testing), but I don't see this package in this version.

Comment 3 Miroslav Grepl 2013-02-15 15:46:08 UTC
It is going to be a new update today. You can use builds from koji for now


http://koji.fedoraproject.org/koji/buildinfo?buildID=383809

Comment 4 Fedora Update System 2013-02-15 22:44:44 UTC
selinux-policy-3.11.1-78.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-78.fc18

Comment 5 Fedora Update System 2013-02-17 03:24:59 UTC
Package selinux-policy-3.11.1-78.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-78.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-2588/selinux-policy-3.11.1-78.fc18
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-02-18 06:59:25 UTC
selinux-policy-3.11.1-78.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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