Bug 720108 - SELinux is preventing /sbin/ldconfig from 'read' accesses on the dossier /root.
Summary: SELinux is preventing /sbin/ldconfig from 'read' accesses on the dossier /root.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2b888bdafd8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-09 12:12 UTC by Nicolas Mailhot
Modified: 2011-07-17 16:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-11 22:09:27 UTC
Type: ---


Attachments (Terms of Use)

Description Nicolas Mailhot 2011-07-09 12:12:07 UTC
SELinux is preventing /sbin/ldconfig from 'read' accesses on the dossier /root.

*****  Plugin leaks (50.5 confidence) suggests  ******************************

If you want to ignore ldconfig trying to read access the root directory, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /sbin/ldconfig /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (50.5 confidence) suggests  ***************************

If you believe that ldconfig should be allowed read access on the root 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                unconfined_u:system_r:ldconfig_t:s0-s0:c0.c1023
Target Context                system_u:object_r:admin_home_t:s0
Target Objects                /root [ dir ]
Source                        ldconfig
Source Path                   /sbin/ldconfig
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           glibc-2.14-3
Target RPM Packages           filesystem-2.4.42-1.fc16
Policy RPM                    selinux-policy-3.9.16-30.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.0-0.rc4.git3.1.fc16.x86_64 #1
                              SMP Fri Jun 24 21:13:31 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    mar. 28 juin 2011 07:50:17 CEST
Last Seen                     mar. 28 juin 2011 07:50:55 CEST
Local ID                      59ca8627-343c-4337-83d3-2cde4d1dbfaa

Raw Audit Messages
type=AVC msg=audit(1309240255.748:1070): avc:  denied  { read } for  pid=5554 comm="ldconfig" path="/root" dev=dm-1 ino=84 scontext=unconfined_u:system_r:ldconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=dir


type=AVC msg=audit(1309240255.748:1070): avc:  denied  { read } for  pid=5554 comm="ldconfig" path="/root" dev=dm-1 ino=84 scontext=unconfined_u:system_r:ldconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1309240255.748:1070): arch=x86_64 syscall=execve success=yes exit=0 a0=66f2798 a1=959d3d0 a2=7fff57025198 a3=7f568be749f0 items=0 ppid=5472 pid=5554 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty2 ses=83 comm=ldconfig exe=/sbin/ldconfig subj=unconfined_u:system_r:ldconfig_t:s0-s0:c0.c1023 key=(null)

Hash: ldconfig,ldconfig_t,admin_home_t,dir,read

audit2allow

#============= ldconfig_t ==============
allow ldconfig_t admin_home_t:dir read;

audit2allow -R

#============= ldconfig_t ==============
allow ldconfig_t admin_home_t:dir read;

Comment 1 Miroslav Grepl 2011-07-11 14:31:17 UTC
Were you sitting in /root when you did the "yum update"?

Comment 2 Daniel Walsh 2011-07-11 22:09:27 UTC
Added dontaudit in rawhide 

selinux-policy-3.10.0-3.fc16

Comment 3 Nicolas Mailhot 2011-07-17 16:58:38 UTC
(In reply to comment #1)
> Were you sitting in /root when you did the "yum update"?

No idea, sorry, lately my system does not resist to rawhide updates long enough to investigate properly. Thank you for the fix


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