|
@@ -265,6 +265,7 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
|
|
|
for (i=0, cmfptr=(__force int __user *)CMSG_DATA(cm); i<fdmax;
|
|
|
i++, cmfptr++)
|
|
|
{
|
|
|
+ struct socket *sock;
|
|
|
int new_fd;
|
|
|
err = security_file_receive(fp[i]);
|
|
|
if (err)
|
|
@@ -281,6 +282,9 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
|
|
|
}
|
|
|
/* Bump the usage count and install the file. */
|
|
|
get_file(fp[i]);
|
|
|
+ sock = sock_from_file(fp[i], &err);
|
|
|
+ if (sock)
|
|
|
+ sock_update_netprioidx(sock->sk, current);
|
|
|
fd_install(new_fd, fp[i]);
|
|
|
}
|
|
|
|