Bug 71282 - Cannot authenticate second libva client
Summary: Cannot authenticate second libva client
Status: RESOLVED INVALID
Alias: None
Product: DRI
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 23:05 UTC by Roman Ekjanov
Modified: 2013-11-06 01:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Test program (926 bytes, text/plain)
2013-11-05 23:05 UTC, Roman Ekjanov
no flags Details

Description Roman Ekjanov 2013-11-05 23:05:02 UTC
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!
Comment 1 Roman Ekjanov 2013-11-06 01:09:48 UTC
Sorry, figured it out - libva is at fault


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.