Re: shared libraries and selinux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 12, 2007 at 04:57:27PM -0400, Matthew D Truch wrote:
> I'm the kst maintainer (a KDE scientific plotting program) and I'm
> locally building version 1.5.0 (just released) for testing before I
> place things in Fedora proper.  
> 
> I can easily build rpms and install them, but I get the following error:
> kst: error while loading shared libraries: /usr/lib/libkstextdate.so.1:
> cannot restore segment prot after reloc: Permission denied
> 
> The following chcon commands in %post fix the problem, but I don't
> really know much about selinux, if this is the correct course of action,
> or am I misunderstanding things.  
> chcon -t texrel_shlib_t %{_libdir}/libkst*so.1*
> chcon -t texrel_shlib_t %{_libdir}/kde3/kst*so
> chcon -t texrel_shlib_t %{_libdir}/kde3/kstplugins/*so

Instead of these hacks please try to fix the Makefiles, so that the library
doesn't have text relocations.
You can e.g. start with
eu-findtextrel /usr/lib/libkstextdate.so.1

	Jakub

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux