[PATCH] file: modify struct fown_struct to use a struct pid
File handles can be requested to send sigio and sigurg to processes. By tracking the destination processes using struct pid instead of pid_t we make the interface safe from all potential pid wrap around problems. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
bde0d2c98b
commit
609d7fa956
@@ -825,7 +825,7 @@ static long sock_ioctl(struct file *file, unsigned cmd, unsigned long arg)
|
||||
break;
|
||||
case FIOGETOWN:
|
||||
case SIOCGPGRP:
|
||||
err = put_user(sock->file->f_owner.pid,
|
||||
err = put_user(f_getown(sock->file),
|
||||
(int __user *)argp);
|
||||
break;
|
||||
case SIOCGIFBR:
|
||||
|
Reference in New Issue
Block a user