Bug 620078 - Allow launching 3d apps from menus
Allow launching 3d apps from menus
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: xguest (Show other bugs)
13
All Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-31 15:29 EDT by Iván Jiménez
Modified: 2010-08-21 06:39 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-08-21 06:39:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Screenshot of the error and torcs launched from terminal (934.23 KB, image/png)
2010-07-31 15:29 EDT, Iván Jiménez
no flags Details
messages in audit.log (1.71 KB, text/plain)
2010-08-10 12:23 EDT, Iván Jiménez
no flags Details

  None (edit)
Description Iván Jiménez 2010-07-31 15:29:22 EDT
Created attachment 435788 [details]
Screenshot of the error and torcs launched from terminal

Description of problem:
While using xguest account, if I go to Applications -> Games -> TORCS an error message appears saying "Your system currently is not capable of hardware accelerated 3D", but if I open a terminal and run torcs it works fine. I think xguest should be allowed to launch 3d apps using menus.

Version-Release number of selected component (if applicable):
xguest-1.0.8-6.fc13.noarch

How reproducible:
always

Steps to Reproduce:
1. install xguest and a 3d app (eg torcs)
2. try to launch it from applications' menu
  
Actual results:
error

Expected results:
just works
Comment 1 Daniel Walsh 2010-08-03 13:59:47 EDT
What avc messages are you seeing in your logs?

ausearch -m avc -ts recent
Comment 2 Iván Jiménez 2010-08-03 17:17:42 EDT
[root@endeavour ~]# ausearch -m avc -ts recent
<no matches>
Comment 3 Daniel Walsh 2010-08-04 14:34:50 EDT
Could you launch the app again and then check for AVCS?
Comment 4 Iván Jiménez 2010-08-06 10:23:58 EDT
(In reply to comment #3)
> Could you launch the app again and then check for AVCS?    

Sure. If i do ausearch -m avc -ts recent as xguest I get:

Error opening config file (Permiso denegado)
NOTE - using built-in logs: /var/log/audit/audit.log
Error opening /var/log/audit/audit.log (Permiso denegado)

and as root:

<no matches>

so I guess there aren't avcs, just the error message.
Comment 5 Daniel Walsh 2010-08-06 11:03:59 EDT
As root execute

You can turn off the "dontaudit" rules by executing
# semodule -DB
As xguest_t try to run the app.
Collect all of the AVC messages that deal with the tool.

Turn back on the dontaudit rules by executing 
# semodule -B
Comment 6 Iván Jiménez 2010-08-10 12:23:50 EDT
Created attachment 437941 [details]
messages in audit.log

After issuing semodule -DB, these are the messages in audit.log that seems related.
Comment 7 Daniel Walsh 2010-08-13 12:05:02 EDT
Does

#setsebool -P user_direct_dri 1

Fix the problem?
Comment 8 Iván Jiménez 2010-08-15 13:39:27 EDT
(In reply to comment #7)
> Does
> 
> #setsebool -P user_direct_dri 1
> 
> Fix the problem?

Yes, thank you!

Note You need to log in before you can comment on or make changes to this bug.