Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499138 - x11-drivers/nvidia-drivers - sandbox access violations in /.NNNN.tmp
Summary: x11-drivers/nvidia-drivers - sandbox access violations in /.NNNN.tmp
Status: VERIFIED DUPLICATE of bug 469210
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-24 17:09 UTC by Timothy Jones
Modified: 2014-01-26 17:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nvidia-drivers.output (nvidia-drivers.output,16.00 KB, text/plain)
2014-01-24 17:10 UTC, Timothy Jones
Details
patch that fixes the problem (0001-nvidia-drivers-don-t-change-S.patch,951 bytes, patch)
2014-01-24 17:13 UTC, Timothy Jones
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Jones 2014-01-24 17:09:24 UTC
When building x11-drivers/nvidia-drivers using paludis package manager the ebuild is causing sandbox access violations. The fix is trivial.

Reproducible: Always

Steps to Reproduce:
1. cave resolve -1x nvidia-drivers
Actual Results:  
See attached nvidia-drivers.output

Expected Results:  
nvidia-drivers installed
Comment 1 Timothy Jones 2014-01-24 17:10:27 UTC
Created attachment 368630 [details]
nvidia-drivers.output
Comment 2 Timothy Jones 2014-01-24 17:13:04 UTC
Created attachment 368632 [details, diff]
patch that fixes the problem
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-24 17:22:47 UTC
Comment on attachment 368632 [details, diff]
patch that fixes the problem

This seems wholly wrong. S is set correctly here, and mkdir $S should not be necessary. Additionally, the error appears to occur in linux-info.eclass and not in the ebuild.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-24 17:24:53 UTC
Comment on attachment 368630 [details]
nvidia-drivers.output

>nvidia-drivers-331.38>  * Determining the location of the kernel source code
>nvidia-drivers-331.38>  * Found kernel source directory:
>nvidia-drivers-331.38>  *     /usr/src/linux

>nvidia-drivers-331.38>  * Found sources for kernel version:
>nvidia-drivers-331.38>  *     3.13.0-gentoo-r1
>
>nvidia-drivers-331.38>  * Gentoo supports kernels which are supported by NVIDIA
>nvidia-drivers-331.38>  * which are limited to the following kernels:
>nvidia-drivers-331.38>  * <sys-kernel/gentoo-sources-3.13
>nvidia-drivers-331.38>  * <sys-kernel/vanilla-sources-3.13
>nvidia-drivers-331.38>  * 
>nvidia-drivers-331.38>  * You are free to utilize epatch_user to provide whatever
>nvidia-drivers-331.38>  * support you feel is appropriate, but will not receive
>nvidia-drivers-331.38>  * support as a result of those changes.
>nvidia-drivers-331.38>  * 
>nvidia-drivers-331.38>  * Do not file a bug report about this.

You are using an unsupported kernel. If you would like me to look at the sandbox violations, then try again with a supported kernel, viz. <gentoo-sources-3.13.
Comment 5 Timothy Jones 2014-01-24 17:41:59 UTC
It was doing the exact same thing with 3.12. I literally have just uninstalled it and installed 3.13, which why I remembered about this error and decided to submit the bug.

If you are willing to look at the errors, I will go ahead and reinstall 3.12.

Also, please see my next comment (which I am I/P typing) with some more details about this error.
Comment 6 Timothy Jones 2014-01-24 17:45:53 UTC
(In reply to Jeroen Roovers from comment #3)
> Comment on attachment 368632 [details, diff] [details, diff]
> patch that fixes the problem
> 
> This seems wholly wrong. S is set correctly here, and mkdir $S should not be
> necessary. Additionally, the error appears to occur in linux-info.eclass and
> not in the ebuild.

Jeroen, you are correct the actual error is in linux-info.eclass. See bug # 469210:

https://bugs.gentoo.org/show_bug.cgi?id=469210

However, I noticed that other packages, eg. gentoo-sources or networkmanager, which all access /usr/src/linux, don't throw these errors. And the only difference between them and the nvidia-drivers is that the latter changes S to WORKDIR.

So, my patch is just a "workaround" rather than a proper "fix". If you are not willing to apply it, that's totally fine, I have the patched in my overlay.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-24 17:49:43 UTC

*** This bug has been marked as a duplicate of bug 469210 ***
Comment 8 Timothy Jones 2014-01-25 03:36:52 UTC
Jeroen, I submitted a patch against linux-info.eclass, but I don't seem to get much response on that bug. Do you have the power to review/commit/reject the patch?

Also, another 2 things I wanted to clarify: 

1. Should the get_makefile_extract_function be responsible for checking the phase or should the ebuild calling this function check that?

2. Why is it that setting S=$WORKDIR triggers these violations? While leaving it as-is doesn't? Maybe, this is already accounted for with some sandbox access rules? Sorry, my portage-foo is very minimal, so I am just poking in the dark here.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-25 04:05:56 UTC

*** This bug has been marked as a duplicate of bug 469210 ***
Comment 10 Timothy Jones 2014-01-26 17:19:33 UTC
(In reply to Timothy Jones from comment #8)
> Jeroen, I submitted a patch against linux-info.eclass, but I don't seem to
> get much response on that bug. Do you have the power to review/commit/reject
> the patch?
> 
> Also, another 2 things I wanted to clarify: 
> 
> 1. Should the get_makefile_extract_function be responsible for checking the
> phase or should the ebuild calling this function check that?
> 
> 2. Why is it that setting S=$WORKDIR triggers these violations? While
> leaving it as-is doesn't? Maybe, this is already accounted for with some
> sandbox access rules? Sorry, my portage-foo is very minimal, so I am just
> poking in the dark here.

bump