summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_socket.c
diff options
context:
space:
mode:
authorchris <chris@FreeBSD.org>2000-07-02 19:31:00 +0000
committerchris <chris@FreeBSD.org>2000-07-02 19:31:00 +0000
commit660e8782d4ddc7aa6938eae6d418301b2b529cf9 (patch)
tree0591c9aeccf94fd6f4381ee478755e6a2df3124f /sys/kern/sys_socket.c
parentecc506d77eea52533bc4c74a8929fbf9760b9629 (diff)
downloadFreeBSD-src-660e8782d4ddc7aa6938eae6d418301b2b529cf9.zip
FreeBSD-src-660e8782d4ddc7aa6938eae6d418301b2b529cf9.tar.gz
Report -rw-rw-rw file access modes in soo_stat.
Reviewed by: alfred
Diffstat (limited to 'sys/kern/sys_socket.c')
-rw-r--r--sys/kern/sys_socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c
index 2f9383b..06955bb 100644
--- a/sys/kern/sys_socket.c
+++ b/sys/kern/sys_socket.c
@@ -164,7 +164,8 @@ soo_stat(fp, ub, p)
struct socket *so = (struct socket *)fp->f_data;
bzero((caddr_t)ub, sizeof (*ub));
- ub->st_mode = S_IFSOCK;
+ ub->st_mode = S_IFSOCK | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP |
+ S_IROTH | S_IWOTH;
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));
OpenPOWER on IntegriCloud