diff options
| author | Chris Costello <chris@FreeBSD.org> | 2000-05-11 22:08:57 +0000 |
|---|---|---|
| committer | Chris Costello <chris@FreeBSD.org> | 2000-05-11 22:08:57 +0000 |
| commit | 040fac0bbda0a202e85de7f400d5b3178bc9b8f0 (patch) | |
| tree | 238ec394b39e6b15a017a2e9b2d21c6f5b0ef7fb /sys/kern/sys_socket.c | |
| parent | 12861d58db687c232ed5da487068cc450566e1df (diff) | |
Notes
Diffstat (limited to 'sys/kern/sys_socket.c')
| -rw-r--r-- | sys/kern/sys_socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c index f0f27179a124..2f9383b21e93 100644 --- a/sys/kern/sys_socket.c +++ b/sys/kern/sys_socket.c @@ -45,6 +45,7 @@ #include <sys/stat.h> #include <sys/uio.h> #include <sys/filedesc.h> +#include <sys/ucred.h> #include <net/if.h> #include <net/route.h> @@ -164,6 +165,8 @@ soo_stat(fp, ub, p) bzero((caddr_t)ub, sizeof (*ub)); ub->st_mode = S_IFSOCK; + ub->st_uid = so->so_cred->cr_uid; + ub->st_gid = so->so_cred->cr_gid; return ((*so->so_proto->pr_usrreqs->pru_sense)(so, ub)); } |
