LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-14-2011, 10:59 AM   #1
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 224

Rep: Reputation: 8
Disable PaX for Nvidia Drivers


When using hardened gentoo kernel with PaX and SELinux...but SELinux is disable...I can not run Compiz Fusion. I get: Compiz: error while loading shared libraries: libgl.so.1: failed to map segment from object: operation not permitted". I went into X without compiz fine with no problems. Just seems to be with Compiz-Fusion. Can anyone help please? This is with Nvidia closed source drivers.

Last edited by dman777; 01-14-2011 at 02:20 PM.
 
Old 01-14-2011, 12:24 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,615

Rep: Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584
libGL.so.1 is a basic graphics library. Nvidia installs it's own proprietary one. Post the output of

ls -l /usr/lib(64)/libGL*
 
1 members found this post helpful.
Old 01-14-2011, 12:40 PM   #3
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 224

Original Poster
Rep: Reputation: 8
Code:
localhost three # ls -l /usr/lib64/libGL*
lrwxrwxrwx 1 root root     36 Jan 14 09:07 /usr/lib64/libGL.so -> opengl/nvidia/lib/libGL.so.260.19.29
lrwxrwxrwx 1 root root     11 Jan 12 14:29 /usr/lib64/libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root     20 Jan 12 14:29 /usr/lib64/libGLU.so.1 -> libGLU.so.1.3.070900
-rwxr-xr-x 1 root root 526184 Jan 12 14:29 /usr/lib64/libGLU.so.1.3.070900
lrwxrwxrwx 1 root root     39 Sep 27 05:54 /usr/lib64/libGLcore.so -> opengl/nvidia/lib/libGLcore.so.96.43.16
localhost three #
What do you think?


I should mention that I recompiled my kernel with PaX off and I am now able to get into Compiz Fusion. The output above is with the kernel having the PaX off(although I don't believe it should matter).


UPDATE:
Ok, I've been told that Nvidia binary drivers will not work with PaX. How can I disable it with paxctl?

Last edited by dman777; 01-14-2011 at 02:20 PM.
 
Old 01-14-2011, 08:42 PM   #4
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 428

Rep: Reputation: 65
you may have to run it on a few different files but if you have paxctl installed it will be paxctl -pemrxs /path/to/file. If that works you can remove them with paxctl -PEMRSX /path/to/file and run it again then look at the logs to see what is actually stopping it and just disable the one feature with paxctl to make sure its working properly.

here is the help from paxctl so when you see something specific in the logs you can map it back to a specific feature of PAX.
Code:
usage: paxctl <options> <files>

options:
        -p: disable PAGEEXEC            -P: enable PAGEEXEC
        -e: disable EMUTRMAP            -E: enable EMUTRMAP
        -m: disable MPROTECT            -M: enable MPROTECT
        -r: disable RANDMMAP            -R: enable RANDMMAP
        -x: disable RANDEXEC            -X: enable RANDEXEC
        -s: disable SEGMEXEC            -S: enable SEGMEXEC

        -v: view flags                  -z: restore default flags
        -q: suppress error messages     -Q: report flags in short format
        -c: convert PT_GNU_STACK into PT_PAX_FLAGS (see manpage!)
        -C: create PT_PAX_FLAGS (see manpage!)
 
Old 01-15-2011, 03:30 AM   #5
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,615

Rep: Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584
To your libs first. I don't see libGL.so.1 which should point at opengl/nvidia/lib/libGL.so.260.19.29, presuming 260.19.29 is your nvidia version.
Quote:
UPDATE:
Ok, I've been told that Nvidia binary drivers will not work with PaX. How can I disable it with paxctl?
Read.Pax is kernel; based stuff, iirc pax & grsecurity used to be one big patch at one stage, implementing all sorts of weird things and nvidia's drivers probably aren't up to it. Are you on HLFS or something?
 
  


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
compiz-fusion and fusion-icon problems psilo357 Linux - Software 2 12-22-2008 05:41 PM
compiz compiz-fusion and beryl sharky Ubuntu 13 08-29-2008 02:18 AM
Skydome background doesn't work with compiz/gnome unless I use the compiz fusion icon The_Trooper Linux - Software 1 07-21-2008 02:08 PM
How can I disabled SELinux? abefroman Linux - Kernel 3 09-17-2006 11:22 AM
getsebool: SELinux is disabled ?? dansawyer Linux - Security 4 09-14-2006 04:31 PM


All times are GMT -5. The time now is 08:18 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration