diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2006-10-02 05:17:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-02 10:57:14 -0400 |
commit | 609d7fa9565c754428d2520cac2accc9052e1245 (patch) | |
tree | 1c5114ec3720166fe99ce3885e8767929a8a84e0 /net/socket.c | |
parent | bde0d2c98bcfc9acc83ac79c33a6ac1335b95a92 (diff) |
[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>
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index 01918f7a301a..6c9b9b326d76 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -825,7 +825,7 @@ static long sock_ioctl(struct file *file, unsigned cmd, unsigned long arg) | |||
825 | break; | 825 | break; |
826 | case FIOGETOWN: | 826 | case FIOGETOWN: |
827 | case SIOCGPGRP: | 827 | case SIOCGPGRP: |
828 | err = put_user(sock->file->f_owner.pid, | 828 | err = put_user(f_getown(sock->file), |
829 | (int __user *)argp); | 829 | (int __user *)argp); |
830 | break; | 830 | break; |
831 | case SIOCGIFBR: | 831 | case SIOCGIFBR: |