OpenVZ Forum


Home » Mailing lists » Devel » [RFC][PATCH] pidspace in coda fs
[RFC][PATCH] pidspace in coda fs [message #17431] Fri, 02 February 2007 19:18
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
Hi

I am trying to understand how the pid, pgid, and sid fields coda_in_hdr
are used. Are they really required ? If so, can you please review/comment
on the following patch. If they are not required, can I submit a patch
to remove the three fields ?

Appreciate your input.

Suka

---


Use container-safe interfaces for pid and pgid.

---
 fs/coda/upcall.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: lx26-20-rc6-mm3/fs/coda/upcall.c
===================================================================
--- lx26-20-rc6-mm3.orig/fs/coda/upcall.c	2006-11-29 13:57:37.000000000 -0800
+++ lx26-20-rc6-mm3/fs/coda/upcall.c	2007-02-02 11:05:56.000000000 -0800
@@ -52,8 +52,8 @@ static void *alloc_upcall(int opcode, in
 		return ERR_PTR(-ENOMEM);
 
         inp->ih.opcode = opcode;
-	inp->ih.pid = current->pid;
-	inp->ih.pgid = process_group(current);
+	inp->ih.pid = pid_nr(task_pid(current));
+	inp->ih.pgid = pid_nr(task_pgrp(current));
 #ifdef CONFIG_CODA_FS_OLD_API
 	memset(&inp->ih.cred, 0, sizeof(struct coda_cred));
 	inp->ih.cred.cr_fsuid = current->fsuid;
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Previous Topic: [PATCH v2] Allow access to /proc/$PID/fd after setuid()
Next Topic: [IPC]: Logical refcount loop in ipc ns -> massive leakage
Goto Forum:
  


Current Time: Tue Aug 12 21:15:41 GMT 2025

Total time taken to generate the page: 0.74118 seconds