Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm Return current pid and curren...



details:   https://anonhg.NetBSD.org/src/rev/169da2a245e0
branches:  trunk
changeset: 806648:169da2a245e0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Mar 04 11:00:15 2015 +0000

description:
Return current pid and current euid from drm_getclient to fool libva.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_ioctl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r d38286b50943 -r 169da2a245e0 sys/external/bsd/drm2/dist/drm/drm_ioctl.c
--- a/sys/external/bsd/drm2/dist/drm/drm_ioctl.c        Wed Mar 04 09:39:26 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_ioctl.c        Wed Mar 04 11:00:15 2015 +0000
@@ -232,8 +232,8 @@
        if (client->idx == 0) {
                client->auth = file_priv->authenticated;
 #ifdef __NetBSD__              /* XXX Too scary to contemplate.  */
-               client->pid = -1;
-               client->uid = -1;
+               client->pid = curproc->p_pid;
+               client->uid = kauth_cred_geteuid(curproc->p_cred);
 #else
                client->pid = pid_vnr(file_priv->pid);
                client->uid = from_kuid_munged(current_user_ns(),



Home | Main Index | Thread Index | Old Index