Bug 221278
Summary: | selinux errors with nVidia video driver | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Need Real Name <bugzilla> |
Component: | selinux-policy-targeted | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6 | CC: | axel.thimm, drepper |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Current | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-08-22 14:14:01 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Need Real Name
2007-01-03 15:09:27 UTC
chcon -t textrel_shlib_t nvidia-1.0-9631_drv.o Also please update to the latest policy. Also if you install setroubleshoot, it will help you diagnose selinux-errors. If I were to update the rpm to include this, how would I express this in the specfile? For rpm to record the context it would have to be part of %install or an attribute to the %files section. Since %install runs as a non-root user, can this user use chcon w/o limitations (under %{buildroot})? Thanks! The best idea is to tell me what the path is and to get it into the base policy. you could use semanage and restorecon semanage fcontext -a -t textrel_shlib_t PATH restorecon PATH > The best idea is to tell me what the path is and to get it into the base
> policy.
OK, the modules and libs are located under
/usr/lib/xorg/modules/drivers/nvidia-graphics-1.0-9746/nvidia_drv.so
/usr/lib/xorg/modules/extensions/nvidia-graphics-1.0-9746/libglx.so.1.0.9746
/usr/lib/xorg/modules/nvidia-graphics-1.0-9746/libnvidia-wfb.so.1.0.9746
/usr/lib/nvidia-graphics-1.0-9746/libGL.so.1.0.9746
/usr/lib/nvidia-graphics-1.0-9746/libGLcore.so.1.0.9746
/usr/lib/nvidia-graphics-1.0-9746/libXvMCNVIDIA.so.1.0.9746
/usr/lib/nvidia-graphics-1.0-9746/libnvidia-cfg.so.1.0.9746
/usr/lib/nvidia-graphics-1.0-9746/libnvidia-tls.so.1.0.9746
/usr/lib/nvidia-graphics-1.0-9746/tls/libnvidia-tls.so.1.0.9746
with symlinks to higher folders w/o the nvidia-graphics-[^/]* part, e.g.
/usr/lib(64)?/xorg/modules/drivers/(nvidia-graphics-[^/]*/)?nvidia_drv\.so
/usr/lib(64)?/xorg/modules/extensions/(nvidia-graphics-[^/]*/)?libglx\.so\.[^/]*
/usr/lib(64)?/xorg/modules/(nvidia-graphics-[^/]*/)?libnvidia-wfb\.so\.[^/]*
/usr/lib(64)?/(nvidia-graphics-[^/]*/)?libGL\.so\.[^/]*
/usr/lib(64)?/(nvidia-graphics-[^/]*/)?libGLcore\.so\.[^/]*
/usr/lib(64)?/(nvidia-graphics-[^/]*/)?libXvMCNVIDIA\.so\.[^/]*
/usr/lib(64)?/(nvidia-graphics-[^/]*/)?libnvidia-cfg\.so\.[^/]*
/usr/lib(64)?/(nvidia-graphics-[^/]*/)?libnvidia-tls\.so\.[^/]*
/usr/lib(64)?/(nvidia-graphics-[^/]*/)?tls/libnvidia-tls\.so\.[^/]*
The above covers both conventional nvidia installs, too. But I don't really know
which libs need special selinux treatment. For example libnvidia-wfb is a very
fresh part of the driver only used with nv80 hardware, so s/o with such a
hardware would have to report on selinux issues I guess, or not?
Thanks!
Of course, to perhaps state the obvious, "9746" is the current version number. There are other legacy versions still out there and new one no doubt on the way... Has this been fixed yet? I am still a little unsure whether this is to be fixed (by you :) in the base policy or by Axel in his rpm spec file. Thanks The specificatons have been fixed in the base policy. nvidia should fix their libraries. Axel should not need to change anything. It seems that this is still not fixed. What exactly does nvidia need to change or if they are unresponsive is there anything Axel could possibly do (if he is willing) to fix this? If you tell me exactly what needs to be done by nvidia, I would be happy to file a bug report on their forum The best source of information on this topic is at http://people.redhat.com/~drepper/selinux-mem.html I have added Uli to the CC list to see if he has any other comments. It's not possible to exactly tell NVidia what is needed since we don't have access to the sources. Given their goal of speed I assume they have hand-written asm code which is not PIC safe. Or C/C++ code could miss the -fpic/-fPIC option since they think it eats up too much performance. http://people.redhat.com/drepper/textrelocs.html Fixed in current release |