From 38514c79e1a22f59968d7eaa717adfae49929f84 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 11 May 2000 22:08:57 +0000 Subject: Include the UID and GID values filled in by socreate() into socket->so_cred for stat() calls. Reviewed by: phk --- sys/kern/sys_socket.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/kern') diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c index f0f2717..2f9383b 100644 --- a/sys/kern/sys_socket.c +++ b/sys/kern/sys_socket.c @@ -45,6 +45,7 @@ #include #include #include +#include #include #include @@ -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)); } -- cgit v1.1