Bug 743339 - SELinux is preventing /sbin/ldconfig from 'write' accesses on the file /home/james.cape/.config/autostart/dropbox.desktop.
Summary: SELinux is preventing /sbin/ldconfig from 'write' accesses on the file /home/...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f5c2784b66c4f91758c8bf133b9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-04 16:02 UTC by James Cape
Modified: 2011-10-09 19:34 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.10.0-38.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-09 19:34:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description James Cape 2011-10-04 16:02:50 UTC
libreport version: 2.0.5.982
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc6.git0.3.fc16.x86_64
reason:         SELinux is preventing /sbin/ldconfig from 'write' accesses on the file /home/james.cape/.config/autostart/dropbox.desktop.
time:           Tue Oct  4 11:02:40 2011

description:
:SELinux is preventing /sbin/ldconfig from 'write' accesses on the file /home/james.cape/.config/autostart/dropbox.desktop.
:
:*****  Plugin catchall (50.5 confidence) suggests  ***************************
:
:If you believe that ldconfig should be allowed write access on the dropbox.desktop file 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
:
:*****  Plugin leaks (50.5 confidence) suggests  ******************************
:
:If you want to ignore ldconfig trying to write access the dropbox.desktop file, 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
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:ldconfig_t:s0-s0:c0.c102
:                              3
:Target Context                unconfined_u:object_r:config_home_t:s0
:Target Objects                /home/james.cape/.config/autostart/dropbox.desktop
:                              [ file ]
:Source                        ldconfig
:Source Path                   /sbin/ldconfig
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           glibc-2.14.90-8
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-32.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux orwell.ignore-your.tv
:                              3.1.0-0.rc6.git0.3.fc16.x86_64 #1 SMP Fri Sep 16
:                              12:26:22 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Mon 03 Oct 2011 01:39:11 PM CDT
:Last Seen                     Mon 03 Oct 2011 01:39:11 PM CDT
:Local ID                      08ee81ea-066c-4f29-bfbf-605a5d3b37f9
:
:Raw Audit Messages
:type=AVC msg=audit(1317667151.374:912): avc:  denied  { write } for  pid=1297 comm="ldconfig" path="/home/james.cape/.config/autostart/dropbox.desktop" dev=dm-1 ino=201842 scontext=unconfined_u:unconfined_r:ldconfig_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1317667151.374:912): arch=x86_64 syscall=execve success=yes exit=0 a0=174d8f0 a1=174d9f0 a2=174c190 a3=fffffffe items=0 ppid=1296 pid=1297 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=ldconfig exe=/sbin/ldconfig subj=unconfined_u:unconfined_r:ldconfig_t:s0-s0:c0.c1023 key=(null)
:
:Hash: ldconfig,ldconfig_t,config_home_t,file,write
:
:audit2allow
:
:#============= ldconfig_t ==============
:allow ldconfig_t config_home_t:file write;
:
:audit2allow -R
:
:#============= ldconfig_t ==============
:allow ldconfig_t config_home_t:file write;
:

Comment 1 Daniel Walsh 2011-10-04 20:03:59 UTC
This is a leak in the dropbox package.  Did you just install it, or does it happen every time you run dropbox?

Comment 2 Daniel Walsh 2011-10-04 20:15:06 UTC
Miroslav I just removed the transition from unconfined_t to ldconfig_t and fixed the labeling.  So this problem should go away in 

Fixed in selinux-policy-3.10.0-37.fc16

Comment 3 Fedora Update System 2011-10-06 09:36:06 UTC
selinux-policy-3.10.0-38.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/FEDORA-2011-13775

Comment 4 Fedora Update System 2011-10-09 19:34:53 UTC
selinux-policy-3.10.0-38.fc16 has been pushed to the Fedora 16 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.