Bug 542418

Summary: SELinux is preventing /opt/google/picasa/3.0/wine/bin/wine-preloader from loading /opt/google/picasa/3.0/wine/lib/wine/cryptdlg.dll.so which requires text relocation.
Product: [Fedora] Fedora Reporter: josuescudero
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:1c882dea670081e3bdfece8ab31507834ad61cf391ef5c7e6a2081b5ad5e0443
Fixed In Version: selinux-policy-3.6.32-120.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-07 22:47:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description josuescudero 2009-11-29 18:38:33 UTC
Summary:

SELinux is preventing /opt/google/picasa/3.0/wine/bin/wine-preloader from
loading /opt/google/picasa/3.0/wine/lib/wine/cryptdlg.dll.so which requires text
relocation.

Detailed Description:

The wineboot.exe application attempted to load
/opt/google/picasa/3.0/wine/lib/wine/cryptdlg.dll.so which requires text
relocation. This is a potential security problem. Most libraries do not need
this permission. Libraries are sometimes coded incorrectly and request this
permission. The SELinux Memory Protection Tests
(http://people.redhat.com/drepper/selinux-mem.html) web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/opt/google/picasa/3.0/wine/lib/wine/cryptdlg.dll.so to use relocation as a
workaround, until the library is fixed. Please file a bug report.

Allowing Access:

If you trust /opt/google/picasa/3.0/wine/lib/wine/cryptdlg.dll.so to run
correctly, you can change the file context to textrel_shlib_t. "chcon -t
textrel_shlib_t '/opt/google/picasa/3.0/wine/lib/wine/cryptdlg.dll.so'" You must
also change the default file context files on the system in order to preserve
them even on a full relabel. "semanage fcontext -a -t textrel_shlib_t
'/opt/google/picasa/3.0/wine/lib/wine/cryptdlg.dll.so'"

Fix Command:

chcon -t textrel_shlib_t '/opt/google/picasa/3.0/wine/lib/wine/cryptdlg.dll.so'

Additional Information:

Source Context                unconfined_u:system_r:rpm_script_t:s0-s0:c0.c1023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /opt/google/picasa/3.0/wine/lib/wine/cryptdlg.dll.
                              so [ file ]
Source                        wineboot.exe
Source Path                   /opt/google/picasa/3.0/wine/bin/wine-preloader
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           picasa-3.0.5744-02
Target RPM Packages           picasa-3.0.5744-02
Policy RPM                    selinux-policy-3.6.32-46.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.5-127.fc12.x86_64 #1 SMP Sat Nov 7 21:11:14
                              EST 2009 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 28 Nov 2009 01:49:29 AM EST
Last Seen                     Sat 28 Nov 2009 01:49:29 AM EST
Local ID                      66ace1e6-8529-4a03-9f2b-749783db9fb6
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1259390969.590:51067): avc:  denied  { execmod } for  pid=18369 comm="wineboot.exe" path="/opt/google/picasa/3.0/wine/lib/wine/cryptdlg.dll.so" dev=dm-0 ino=473438 scontext=unconfined_u:system_r:rpm_script_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1259390969.590:51067): arch=40000003 syscall=125 success=no exit=-13 a0=6094e000 a1=1000 a2=7 a3=4d items=0 ppid=1 pid=18369 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="wineboot.exe" exe="/opt/google/picasa/3.0/wine/bin/wine-preloader" subj=unconfined_u:system_r:rpm_script_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-46.fc12,allow_execmod,wineboot.exe,rpm_script_t,lib_t,file,execmod
audit2allow suggests:

#============= rpm_script_t ==============
allow rpm_script_t lib_t:file execmod;

Comment 1 Daniel Walsh 2009-11-29 19:56:19 UTC

You can add these rules for now using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.6.32-51.fc12.noarch

Comment 2 Fedora Update System 2009-12-01 16:53:51 UTC
selinux-policy-3.6.32-52.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-52.fc12

Comment 3 Fedora Update System 2009-12-03 05:01:11 UTC
selinux-policy-3.6.32-52.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12549

Comment 4 Fedora Update System 2009-12-03 20:25:53 UTC
selinux-policy-3.6.32-55.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-55.fc12

Comment 5 Fedora Update System 2009-12-04 23:43:59 UTC
selinux-policy-3.6.32-55.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12650

Comment 6 Fedora Update System 2009-12-08 07:50:36 UTC
selinux-policy-3.6.32-55.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2010-08-05 13:22:59 UTC
selinux-policy-3.6.32-120.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-120.fc12

Comment 8 Fedora Update System 2010-08-20 01:42:54 UTC
selinux-policy-3.6.32-120.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.