如何使 X 客户端不受信任,但可以访问 GPU?

如何使 X 客户端不受信任,但可以访问 GPU?

如果我试图让客户变得不信任,

xauth -f XauthorityU generate $DISPLAY MIT-MAGIC-COOKIE-1 untrusted
export XAUTHORITY=$PWD/XauthorityU

它失去了加速的能力:

$ glxgears
Error: couldn't get an RGB, Double-buffered visual

如何运行不受信任的使用 OpenGL 的应用程序?我要这个:

                       |  trusted   |  untrusted |  Xpra   | I want
-----------------------+------------+------------+---------+------
capture screenshots    |   Yes      |   No       |  No     | No  
    import -window root screenshot.png
inject input events    |   Yes      |   No       |  No     | No
    xte str "qwerty"   
list window titles     |   Yes      |   Yes      |  No     | No 
    xwininfo -root -tree | grep '"'
Use acceleration       |   Yes      |   No       | low FPS | Yes
    glxinfo
Install window manager |   Yes      |   No       |  No     | No
    openbox --replace
Use clipboard          |   Yes      |  no copy,  | Opt-out | unsure
    xclip -out                        only paste 

相关内容