LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-09-2005, 12:40 PM   #1
Iban
LQ Newbie
 
Registered: Jul 2004
Location: Pamplona (Spain)
Distribution: Fedora 4
Posts: 11

Rep: Reputation: 0
SELinux and HAL


Hello all, I'm here again.

I finally get HAL set the correct charset and codepage for my usb HD, but now another problem araises.

I'm working with octave in my external HD and I have created a C function with an interface to interact with octave. The function compiles without problem, but when I try to use the function with octave it returns the folowing error:

cannot restore segment prot after reloc: Permission denied

Searching the net I found that this is caused because the type of security that HAL sets for this file (removable_t) is incorrect. If I change by hand the fstab file and set type to "texrel_shlib_t" it works, but then I can compile the file again, I suppose because the type is again incorrect for this operation. I tried to dissable SELinux for hotplug daemon to avoid it and if I switch the laptop on with the HD connected, HAL don't put any fscontext to the HD, but if I plug the HD in while linux is running HAL put the fscontext again. In this situation I have three questions:

1.- What is the type of security that allows both, shared library access (texrel_shlib_t) and file modifications (removable_t)?
2.- Is there any way to change the default fscontext for HAL? I've tried the solution that works for me with my codepage problem http://www.linuxquestions.org/questi...hreadid=381047 adding the line:
<merge key="volume.policy.mount_option.fscontext=system_ubject_r:texrel_shlib_t" type="bool">true</merge>
but it doesn't works.
3.- Why if I dissable SELinux for hotplug HAL works OK if my HD is connected at boot time and fails if I connect it after boot.

Thanks to everybody in avance.

Iban.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a blacklist for hal? evans0409 Linux - Software 12 02-05-2006 09:29 PM
hal krusty_lab Fedora 3 10-10-2005 10:23 AM
HAL... the circle. Peingune Linux - Newbie 10 08-16-2005 06:01 AM
HAL deamon johnnydangerous Fedora 2 02-08-2005 02:41 AM
Hal gamehack Programming 7 12-16-2004 02:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:18 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