OK, it's time for me to bite the bullet and learn something about
SELinux rather than blithely disabling it on my Fedora installations.

The wiki and several forum posts report that the SqueezeCenter 7.3.4
rpm is compatible with SELinux on Fedora.  E.G.:
http://wiki.slimdevices.com/index.php/SqueezeCenterRPM#SELinux

Yet when I install squeezecenter-7.3.4-0.1.28402.noarch.rpm on Fedora
12, SELinux immediately pops up a warning:

Code:
--------------------
    
  
  Summary:
  
  SELinux is preventing /usr/bin/perl from loading
  
/usr/share/squeezecenter/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
  which requires text relocation.
  
  Detailed Description:
  
  The squeezecenter-s application attempted to load
  
/usr/share/squeezecenter/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.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
  
/usr/share/squeezecenter/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
  to use relocation as a workaround, until the library is fixed. Please file a 
bug
  report.
  
  Allowing Access:
  
  If you trust
  
/usr/share/squeezecenter/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
  to run correctly, you can change the file context to textrel_shlib_t. "chcon 
-t
  textrel_shlib_t
  
'/usr/share/squeezecenter/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.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
  
'/usr/share/squeezecenter/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'"
  
  Fix Command:
  
  chcon -t textrel_shlib_t
  
'/usr/share/squeezecenter/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'
  
  Additional Information:
  
  Source Context                unconfined_u:system_r:initrc_t:s0
  Target Context                system_u:object_r:lib_t:s0
  Target Objects                /usr/share/squeezecenter/CPAN/arch/5.10/i386
  -linux-thread-multi/auto/DBD/mysql/mysql.so [ file
  ]
  Source                        squeezecenter-s
  Source Path                   /usr/bin/perl
  Port                          <Unknown>
  Host                          fedorabox
  Source RPM Packages           perl-5.10.0-82.fc12
  Target RPM Packages           squeezecenter-7.3.4-0.1.28402
  Policy RPM                    selinux-policy-3.6.32-56.fc12
  Selinux Enabled               True
  Policy Type                   targeted
  Enforcing Mode                Enforcing
  Plugin Name                   allow_execmod
  Host Name                     fedorabox
  Platform                      Linux fedorabox 2.6.31.6-166.fc12.i686.PAE #1 
SMP
  Wed Dec 9 11:00:30 EST 2009 i686 i686
  Alert Count                   1
  First Seen                    Tue 22 Dec 2009 11:46:37 AM MST
  Last Seen                     Tue 22 Dec 2009 11:46:37 AM MST
  Local ID                      8a03144e-ee54-4775-99f6-2a74c2ebf6da
  Line Numbers                  
  
  Raw Audit Messages            
  
  node=fedorabox type=AVC msg=audit(1261507597.970:26333): avc:  denied  { 
execmod } for  pid=2814 comm="squeezecenter-s" 
path="/usr/share/squeezecenter/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.so"
 dev=sda2 ino=263533 scontext=unconfined_u:system_r:initrc_t:s0 
tcontext=system_u:object_r:lib_t:s0 tclass=file
  
  node=fedorabox type=SYSCALL msg=audit(1261507597.970:26333): arch=40000003 
syscall=125 success=no exit=-13 a0=f91000 a1=19a000 a2=5 a3=bfb059e0 items=0 
ppid=2784 pid=2814 auid=500 uid=489 gid=470 euid=489 suid=489 fsuid=489 
egid=470 sgid=470 fsgid=470 tty=(none) ses=1 comm="squeezecenter-s" 
exe="/usr/bin/perl" subj=unconfined_u:system_r:initrc_t:s0 key=(null)
  
--------------------

I've got NO experience with trying to configure SELinux.  Anyone care
to give me a couple of pointers to get me started? (Other than blindly
following the instructions in the error message...is that the
appropriate thing to do?)  Are folks of the opinion that SELinux is
useful, worthy and worth the effort?


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=72938

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to