2005-12-15 14:38:56

by Hubertus Franke

[permalink] [raw]
Subject: [RFC][patch 08/21] PID Virtualization: file owner pid virtualization

Utilization of the internal pid_to_vpid function for the
process group id. This is specifically for the owner of
a file that needs to be returned through the fcntl
system call.

Signed-off-by: Hubertus Franke <[email protected]>
--

fs/fcntl.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.15-rc1/fs/fcntl.c
===================================================================
--- linux-2.6.15-rc1.orig/fs/fcntl.c 2005-12-14 15:12:28.000000000 -0500
+++ linux-2.6.15-rc1/fs/fcntl.c 2005-12-14 15:13:55.000000000 -0500
@@ -316,7 +316,7 @@ static long do_fcntl(int fd, unsigned in
* current syscall conventions, the only way
* to fix this will be in libc.
*/
- err = filp->f_owner.pid;
+ err = pgid_to_vpgid(filp->f_owner.pid);
force_successful_syscall_return();
break;
case F_SETOWN:

--