Blame SOURCES/autofs-5.1.2-add-the-mount-requestor-s-pid-to-pending_args.patch

304803
autofs-5.1.2 - add the mount requestor's pid to pending_args
304803
304803
From: Lars R. Damerow <lars@pixar.com>
304803
304803
This will make it easier to log more information about the requesting
304803
process as the mount request proceeds.
304803
304803
Signed-off-by: Lars R. Damerow <lars@pixar.com>
304803
Signed-off-by: Ian Kent <raven@themaw.net>
304803
---
304803
 CHANGELOG           |    1 +
304803
 daemon/direct.c     |    1 +
304803
 daemon/indirect.c   |    1 +
304803
 include/automount.h |    1 +
304803
 4 files changed, 4 insertions(+)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -235,6 +235,7 @@
304803
 - handle amd cache option all in amd type auto mounts.
304803
 - fix bogus check in expire_cleanup().
304803
 - delay submount exit for amd submounts.
304803
+- add the mount requestor's pid to pending_args.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/daemon/direct.c
304803
+++ autofs-5.0.7/daemon/direct.c
304803
@@ -1465,6 +1465,7 @@ int handle_packet_missing_direct(struct
304803
 	mt->type = NFY_MOUNT;
304803
 	mt->uid = pkt->uid;
304803
 	mt->gid = pkt->gid;
304803
+	mt->pid = pkt->pid;
304803
 	mt->wait_queue_token = pkt->wait_queue_token;
304803
 
304803
 	status = pthread_create(&thid, &th_attr_detached, do_mount_direct, mt);
304803
--- autofs-5.0.7.orig/daemon/indirect.c
304803
+++ autofs-5.0.7/daemon/indirect.c
304803
@@ -860,6 +860,7 @@ int handle_packet_missing_indirect(struc
304803
 	mt->dev = pkt->dev;
304803
 	mt->uid = pkt->uid;
304803
 	mt->gid = pkt->gid;
304803
+	mt->pid = pkt->pid;
304803
 	mt->wait_queue_token = pkt->wait_queue_token;
304803
 
304803
 	status = pthread_create(&thid, &th_attr_detached, do_mount_indirect, mt);
304803
--- autofs-5.0.7.orig/include/automount.h
304803
+++ autofs-5.0.7/include/automount.h
304803
@@ -425,6 +425,7 @@ struct pending_args {
304803
 	unsigned int len;		/* Name field len */
304803
 	uid_t uid;			/* uid of requestor */
304803
 	gid_t gid;			/* gid of requestor */
304803
+	pid_t pid;			/* pid of requestor */
304803
 	unsigned long wait_queue_token;	/* Associated kernel wait token */
304803
 };
304803