From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 71282] New: Cannot authenticate second libva client
Date: Tue, 05 Nov 2013 23:05:02 +0000
Message-ID:
Priority
medium
Bug ID
71282
Assignee
dri-devel@lists.freedesktop.org
Summary
Cannot authenticate second libva client
Severity
normal
Classification
Unclassified
OS
Linux (All)
Reporter
rekjanov@epiphan.com
Hardware
x86-64 (AMD64)
Status
NEW
Version
unspecified
Component
General
Product
DRI
Created attachment 88733 [details]
Test program
Environment:
* ubuntu 12.04.3 LTS with 3.8 kernel
* No X11, pure DRM
* libva 0.34
* libdrm 2.4.43
* regular user account, no CAP_SYS_ADMIN, but in 'video' group
* A simple program, which calls vaInitialize and then sleeps for several
seconds.
* Intel video hardware (Ivy Bridge)
Problem:
If another test program instance is started while the first is sleeping, it
fails in va_getDriverName.
Debugging and source review shows that the first instance is authenticated
automatically, because it gets the master. Second instance tries to
authenticate using authmagic, but fails because auth magic ioctl is marked as
DRM_AUTH - so you need to be already authenticated in order to authenticate!