What's new

permission denied errors

tremby

New member
i'm new to mupen64. i've just downloaded and untarred it. when i try to run it it can't load its plugins and so the plugin selection boxes are greyed out. in the terminal window it gives permission denied errors:

Code:
[tremby@tremendo mupen64-0.5]$ ./mupen64 
Couldn't load plugin '/home/tremby/mupen/mupen64-0.5/./plugins/glN64.so': /home/tremby/mupen/mupen64-0.5/./plugins/glN64.so: cannot restore segment prot after reloc: Permission denied
Couldn't load plugin '/home/tremby/mupen/mupen64-0.5/./plugins/mupen64_audio.so': /home/tremby/mupen/mupen64-0.5/./plugins/mupen64_audio.so: cannot restore segment prot after reloc: Permission denied
Couldn't load plugin '/home/tremby/mupen/mupen64-0.5/./plugins/blight_input.so': /home/tremby/mupen/mupen64-0.5/./plugins/blight_input.so: cannot restore segment prot after reloc: Permission denied
Couldn't load plugin '/home/tremby/mupen/mupen64-0.5/./plugins/mupen64_soft_gfx.so': /home/tremby/mupen/mupen64-0.5/./plugins/mupen64_soft_gfx.so: cannot restore segment prot after reloc: Permission denied
Couldn't load plugin '/home/tremby/mupen/mupen64-0.5/./plugins/Glide64.so': /home/tremby/mupen/mupen64-0.5/./plugins/Glide64.so: cannot restore segment prot after reloc: Permission denied
Couldn't load plugin '/home/tremby/mupen/mupen64-0.5/./plugins/mupen64_hle_rsp_azimer.so': /home/tremby/mupen/mupen64-0.5/./plugins/mupen64_hle_rsp_azimer.so: cannot restore segment prot after reloc: Permission denied
Couldn't load plugin '/home/tremby/mupen/mupen64-0.5/./plugins/dummyaudio.so': /home/tremby/mupen/mupen64-0.5/./plugins/dummyaudio.so: cannot restore segment prot after reloc: Permission denied
Couldn't load plugin '/home/tremby/mupen/mupen64-0.5/./plugins/mupen64_input.so': /home/tremby/mupen/mupen64-0.5/./plugins/mupen64_input.so: cannot restore segment prot after reloc: Permission denied
Couldn't load plugin '/home/tremby/mupen/mupen64-0.5/./plugins/ricevideo.so': /home/tremby/mupen/mupen64-0.5/./plugins/ricevideo.so: cannot restore segment prot after reloc: Permission denied
Couldn't load plugin '/home/tremby/mupen/mupen64-0.5/./plugins/jttl_audio.so': /home/tremby/mupen/mupen64-0.5/./plugins/jttl_audio.so: cannot restore segment prot after reloc: Permission denied
Couldn't load plugin '/home/tremby/mupen/mupen64-0.5/./plugins/tr64gl.so': /home/tremby/mupen/mupen64-0.5/./plugins/tr64gl.so: cannot restore segment prot after reloc: Permission denied
[tremby@tremendo mupen64-0.5]$

the same happens if i su to root and then run it.

the permissions are as follows:
Code:
[tremby@tremendo plugins]$ ls -l
total 4364
-rwxr-xr-x 1 tremby tremby  709428 Aug 26  2005 blight_input.so
-rwxr-xr-x 1 tremby tremby    4368 Aug 26  2005 dummyaudio.so
-rw-r--r-- 1 tremby tremby   30696 Aug 26  2005 Glide64.ini
-rwxr-xr-x 1 tremby tremby  932068 Aug 26  2005 Glide64.so
-rwxr-xr-x 1 tremby tremby  218248 Aug 26  2005 glN64.so
-rwxr-xr-x 1 tremby tremby   14292 Aug 26  2005 jttl_audio.so
-rwxr-xr-x 1 tremby tremby   11684 Aug 26  2005 mupen64_audio.so
-rwxr-xr-x 1 tremby tremby   85580 Aug 26  2005 mupen64_hle_rsp_azimer.so
-rwxr-xr-x 1 tremby tremby    7536 Aug 26  2005 mupen64_input.so
-rwxr-xr-x 1 tremby tremby  115096 Aug 26  2005 mupen64_soft_gfx.so
-rw-r--r-- 1 tremby tremby   22582 Aug 26  2005 RiceVideo6.1.0.ini
-rwxr-xr-x 1 tremby tremby 1860732 Aug 27  2005 ricevideo.so
-rwxr-xr-x 1 tremby tremby  344524 Aug 26  2005 tr64gl.so
[tremby@tremendo plugins]$

any ideas on how i can fix this?
 
OP
T

tremby

New member
i did untar as my normal user. as you can see, the owner of the files is tremby, not root.

i should say that i'm using fedora core 6 and gnome.
 
OP
T

tremby

New member
i assume you mean -R rather than +R. i gave all the files full permissions and get the same error messages.
 

beg1689

New member
i found the problem:

I was having this problem but a quick google search revealed it was SELinux. Sure enough, setting it to Disabled or Permissive elimated any errors. I dont really know what im doing so i dont know what exactly in SELinux is causing the problem. But just disable it for a temporary solution.
 

nonfatalexec

New member
I had the same problem. I solved it by setting the security context of the .so files to be the same as some other .so files in my system. In mupen64-0.5/plugins/, I have a bunch of .so files. I fix their security context by running "chcon -t textrel_shlib_t mupen64-0.5/plugins/*.so".
 

Top