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/631c3085afce
branches: trunk
changeset: 336506:631c3085afce
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 e4abd4d9165a -r 631c3085afce 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