Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Implement curtain for AF_LOCAL PCB lists.



details:   https://anonhg.NetBSD.org/src/rev/edeaca1f3743
branches:  trunk
changeset: 584080:edeaca1f3743
user:      elad <elad%NetBSD.org@localhost>
date:      Wed Sep 07 17:38:44 2005 +0000

description:
Implement curtain for AF_LOCAL PCB lists.

diffstat:

 sys/kern/uipc_domain.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r b43b21611663 -r edeaca1f3743 sys/kern/uipc_domain.c
--- a/sys/kern/uipc_domain.c    Wed Sep 07 17:30:07 2005 +0000
+++ b/sys/kern/uipc_domain.c    Wed Sep 07 17:38:44 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_domain.c,v 1.52 2005/06/09 02:19:59 atatat Exp $  */
+/*     $NetBSD: uipc_domain.c,v 1.53 2005/09/07 17:38:44 elad Exp $    */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_domain.c,v 1.52 2005/06/09 02:19:59 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_domain.c,v 1.53 2005/09/07 17:38:44 elad Exp $");
 
 #include <sys/param.h>
 #include <sys/socket.h>
@@ -279,6 +279,9 @@
         * to walk the file list looking for them.  :-/
         */
        LIST_FOREACH(fp, &filehead, f_list) {
+               if (CURTAIN(curlwp->l_proc->p_ucred->cr_uid,
+                           fp->f_cred->cr_uid))
+                       continue;
                if (fp->f_type != DTYPE_SOCKET)
                        continue;
                so = (struct socket *)fp->f_data;



Home | Main Index | Thread Index | Old Index