FYI: [johns at ks.uiuc.edu: Fix for SELinux breaking VMD on FC5]

Eugen Leitl eugen at leitl.org
Tue Apr 4 16:53:28 UTC 2006


----- Forwarded message from John Stone <johns at ks.uiuc.edu> -----

From: John Stone <johns at ks.uiuc.edu>
Date: Tue, 4 Apr 2006 11:28:38 -0500
To: Eugen Leitl <eugen at leitl.org>
Cc: snoze pa <snoze.pa at gmail.com>, "vmd-l at ks.uiuc.edu" <vmd-l at ks.uiuc.edu>
Subject: Fix for SELinux breaking VMD on FC5
User-Agent: Mutt/1.4.2.1i


Hi,
  Indeed, my understanding from browsing the web is that the default 
FC5 SELinux settings break essentially everything that uses plugins, 
including web browsers, and VMD, as setup out of the box.

If you don't want to disable SELinux entirely, I suggest you try
running this command on the VMD installation directory (Assumes the
VMD directory is local to the machine...  If you're mounting over NFS, 
this may or may not work.  If not, then you may have to disable SELinux 
as described below)
  cd /usr/local/lib/vmd
  find . -name \*.so -exec chcon -t texrel_shlib_t {} \; 

If you'd rather just turn SELinux off, try setting the line:
  SELINUX=disabled
in your /etc/sysconfig/selinux and then reboot the machine.

One of those two options ought to solve the problem in the short term.

Redhat has modified the C/C++ compilers and linkers shipping with
FC5 to produce executables and shared libraries that conform to the 
SELinux requirements.  Programs (like VMD) that are compiled on an older
or different Linux version can't use these new flags, so the result is that
SELinux blocks them until you make an exception for them.  
For VMD 1.8.4, I'm going to ship Linux executables built the normal way.
I'll be looking into using the new SELinux related "-fpie" flags in builds
of future versions of VMD, which should hopefully eliminate this SELinux 
relocatable .so file fiasco.

  John Stone
  vmd at ks.uiuc.edu

On Tue, Apr 04, 2006 at 09:04:43AM +0200, Eugen Leitl wrote:
> On Tue, Apr 04, 2006 at 12:18:22AM -0500, snoze pa wrote:
> > after upgrading to Fedora core 5, I am getting following error message
> > in VMD. Any idea about this error message
> > 
> > package require solvate
> > couldn't load file
> > "/usr/local/lib/vmd/plugins/LINUX/tcl/psfgen1.4/libpsfgen.so":
> > /usr/local/lib/vmd/plugins/LINUX/tcl/psfgen1.4/libpsfgen.so: cannot
> > restore segment prot after reloc: Permission denied
> 
> Try turning SELinux off, and rebooting.
> 
> -- 
> Eugen* Leitl <a href="http://leitl.org">leitl</a> http://leitl.org
> ______________________________________________________________
> ICBM: 48.07100, 11.36820            http://www.ativel.com
> 8B29F6BE: 099D 78BA 2FD3 B014 B08A  7779 75B0 2443 8B29 F6BE



-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns at ks.uiuc.edu                 Phone: 217-244-3349
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078

----- End forwarded message -----
-- 
Eugen* Leitl <a href="http://leitl.org">leitl</a> http://leitl.org
______________________________________________________________
ICBM: 48.07100, 11.36820            http://www.ativel.com
8B29F6BE: 099D 78BA 2FD3 B014 B08A  7779 75B0 2443 8B29 F6BE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20060404/0673b3ed/attachment-0002.bin 


More information about the users mailing list