LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-04-2006, 04:02 PM   #1
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,721

Rep: Reputation: 68
K9copy error message


[root@172 mickey]# k9copy
k9copy: error while loading shared libraries: /usr/lib/libk9copy.so.0: cannot restore segment prot after reloc: Permission denied


What is problem.

Jim
 
Old 12-06-2006, 06:16 AM   #2
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
Have you tried running it as root ? I'm not suggesting you should do so all the time, but if it works you know that the problem is just permissions, you can find the exact program that's causing the problems, change the permissions for that program, and things should work. Does that user have permission to write to the dvd-burner and the temp dir for K9 ? Good first places to look.

Best of luck....

David
 
Old 12-06-2006, 11:03 AM   #3
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,721

Original Poster
Rep: Reputation: 68
Yes i have run at SU and get same error message.
The /usr/lib/libk9copy.so.0 and libk9copy.so.0.0.0, both have rx priv.
Only SU has write priv.

Jim
 
Old 12-06-2006, 12:13 PM   #4
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,721

Original Poster
Rep: Reputation: 68
Downloaded Rpm off Redhat site and got same error message.
Download k9copy.tar.gz and compiled and still get same error message
Made a bug report on Sourceforge.net k9copy site.
Just have to wait and see.

Jim
 
Old 12-06-2006, 02:31 PM   #5
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
Have you used the beta version from this site?

It seems to be working for me.
 
Old 12-07-2006, 12:35 PM   #6
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,721

Original Poster
Rep: Reputation: 68
Running tail -f /var/log/messages
When I execute "k9copy" w/o quotes , I get the log in /var/log/messages. Same happens when running
as SU or user.
From What I can see , I'm having problems with Selinux. How do I fix it? Relabel etc etc

Dec 7 12:22:35 sysresccd kernel: audit(1165512155.670:17): avc: denied { execmod } for pid=32642 comm="k9copy" name="libk9copy.so.0.0.0" dev=hda1 ino=3892747 scontext=user_u:system_r:unconfined_t:s0 tcontext=system_ubject_r:lib_t:s0 tclass=file
Dec 7 12:22:36 sysresccd kernel: pci_set_power_state(): 0000:02:08.0: state=3, current state=5

Jim
 
Old 12-07-2006, 01:01 PM   #7
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
I would think these two programs (usr/lib/libk9copy.so.0 and libk9copy.so.0.0.0) need more than rx permissions. I think they both need w too. Have you tried it ? SELinux has fine tuned granular control of permissions, as I understand it. Seems like it is preventing you from using K9. I'm sorry but I don't know a thing about SElinux. Does SElinux have a forum ? I would think they would, and I bet they have already run into and solved this problem.

Best of luck...

David

P.S. Have you made sure you can write to whatever dir K9 is using ? Both temp dir and final ? Those error messeges mention /dev/hda1, is your /home on same partiton as / ? You might want to make sure K9 is writing to someplace under your /home.

Good luck....

Last edited by budword; 12-07-2006 at 01:20 PM.
 
Old 12-09-2006, 09:54 AM   #8
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,721

Original Poster
Rep: Reputation: 68
THIS FIXED THE PROBLEM.


> Actually that will not tell you much. A much better solution would be to run setroubleshootd. This would translate that error message to something like the following:
>
>
>
> Summary
> SELinux is preventing k9copy from loading libk9copy.so.0.0.0 which requires
> text relocation.
>
> Detailed Description
> The k9copy application attempted to load libk9copy.so.0.0.0 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 http://people.redhat.com/drepper/selinux-
> mem.html web page explains how to remove this requirement. You can
> configure SELinux temporarily to allow libk9copy.so.0.0.0 to use relocation
> as a workaround, until the library is fixed. Please file a
> http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.
>
> Allowing Access
> If you trust libk9copy.so.0.0.0 to run correctly, you can change the file
> context to textrel_shlib_t. "chcon -t textrel_shlib_t libk9copy.so.0.0.0"
>
> The following command will allow this access:
> chcon -t textrel_shlib_t libk9copy.so.0.0.0
>
> Additional Information Source Context user_u:system_r:unconfined_t
> Target Context system_ubject_r:lib_t
> Target Objects libk9copy.so.0.0.0 [ file ]
> Affected RPM Packages Policy RPM Selinux Enabled Policy Type MLS Enabled Enforcing Mode Plugin Name plugins.allow_execmod
> Host Name Platform Alert Count 1
> Line Numbers 1
>
> Raw Audit Messages avc: denied { execmod } for comm="k9copy" dev=hda1 name="libk9copy.so.0.0.0"
> pid=32642 scontext=user_u:system_r:unconfined_t:s0 tclass=file
> tcontext=system_ubject_r:lib_t:s0
>
>
>>> Jim
>>>
>>>
>> ----------------------------------------------------------------------
>> - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com -
>> - VitalStream, Inc. http://www.vitalstream.com -
>> - -
>> - "OK, so you're a Ph.D. Just don't TOUCH anything!" -
>> ----------------------------------------------------------------------
>>
>>
>
Thank you , the chcon command did the job.


Jim
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Repeating Error message in /var/log/message lucktsm Linux - Security 2 10-27-2006 09:29 AM
k9copy keeps crashing thebiggiantmouse Linux - Software 0 07-23-2006 11:54 AM
K9copy help ElJollyRancher Linux - Software 3 07-18-2006 09:13 AM
k9copy thebiggiantmouse Linux - Software 8 07-16-2006 06:20 PM
k9copy/dvdauthor error ncsuapex Linux - Software 3 06-03-2006 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration