cifs.upcall: use pid value from kernel to determine KRB5CCNAME to use
authorJeff Layton <jlayton@redhat.com>
Wed, 14 Oct 2009 15:04:50 +0000 (11:04 -0400)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Jan 2010 13:00:48 +0000 (14:00 +0100)
commitb681b97e7182dcfe6a6dc13271ccfec6e5d1a493
treeff41cea599812c1e089b8402ffbb758db5c1e262
parent62a1d9101cf0c2d45f81ba703cfdef5f42006b3f
cifs.upcall: use pid value from kernel to determine KRB5CCNAME to use

If the kernel sends the upcall a pid of the requesting process, we can
open that process' /proc/<pid>/environ file and scrape the KRB5CCNAME
value out of it.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 9ecd9e7dbd6f5f6a07614084207b4891a93ca79b)
source/client/cifs.upcall.c