Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/procfs Make the mode of /proc/<pid>/fd dr-x------



details:   https://anonhg.NetBSD.org/src/rev/eef0cd7a6bea
branches:  trunk
changeset: 546003:eef0cd7a6bea
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 18 23:19:24 2003 +0000

description:
Make the mode of /proc/<pid>/fd dr-x------

diffstat:

 sys/miscfs/procfs/procfs_subr.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 45040bad37a0 -r eef0cd7a6bea sys/miscfs/procfs/procfs_subr.c
--- a/sys/miscfs/procfs/procfs_subr.c   Fri Apr 18 22:44:54 2003 +0000
+++ b/sys/miscfs/procfs/procfs_subr.c   Fri Apr 18 23:19:24 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_subr.c,v 1.51 2003/04/18 21:55:35 christos Exp $        */
+/*     $NetBSD: procfs_subr.c,v 1.52 2003/04/18 23:19:24 christos Exp $        */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou.  All rights reserved.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_subr.c,v 1.51 2003/04/18 21:55:35 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_subr.c,v 1.52 2003/04/18 23:19:24 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -144,8 +144,7 @@
        case Pproc:     /* /proc/N = dr-xr-xr-x */
        case Pfd:
                if (fd == -1) { /* /proc/N/fd = dr-xr-xr-x */
-                       pfs->pfs_mode =
-                           S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH;
+                       pfs->pfs_mode = S_IRUSR|S_IXUSR;
                        vp->v_type = VDIR;
                } else {        /* /proc/N/fd/M = [ps-]rw------- */
                        struct file *fp;



Home | Main Index | Thread Index | Old Index