Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot access /dev/dri/* when in chroot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gasc
n00b
n00b


Joined: 16 Mar 2024
Posts: 1

PostPosted: Mon Oct 21, 2024 8:05 am    Post subject: Cannot access /dev/dri/* when in chroot Reply with quote

Hello,

I am updating an ebuild, and the tests need access to the video card. When running the tests in a chroot, they all fails with the error
Code:

libEGL warning: failed to open /dev/dri/renderD128: Permission denied
libEGL warning: failed to open /dev/dri/renderD128: Permission denied
libEGL warning: failed to open /dev/dri/card0: Permission denied


It is a python ebuild, and I am using virtx to run the tests.
Everything should work but it does not, I am puzzled.

Do anyone has an idea ?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22537

PostPosted: Mon Oct 21, 2024 12:16 pm    Post subject: Reply with quote

Welcome to the forums. On its own, chroot should not cause this. However, some kernel hardening features may interpret chroot as a broader request to lock down the contained process. What is the output of emerge --info; namei -l /dev/dri/card0 while in the chroot?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum