diff options
author | dg <dg@FreeBSD.org> | 1995-04-15 02:30:17 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-04-15 02:30:17 +0000 |
commit | 719b4da2eedaa5ffccd0f86e8a4af8d4cc99e28f (patch) | |
tree | f957810e5431e26764dd916c71b3551de4cc5c70 /sys/miscfs/procfs/procfs_subr.c | |
parent | 9dad5219aa9266ebf915c046ed308f83e5e9abe0 (diff) | |
download | FreeBSD-src-719b4da2eedaa5ffccd0f86e8a4af8d4cc99e28f.zip FreeBSD-src-719b4da2eedaa5ffccd0f86e8a4af8d4cc99e28f.tar.gz |
Made /proc/n/mem file group kmem and group readable. Needed to fix ps so
that it doesn't need to be setuid root.
Diffstat (limited to 'sys/miscfs/procfs/procfs_subr.c')
-rw-r--r-- | sys/miscfs/procfs/procfs_subr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c index 4d255ad..e1cfdf3 100644 --- a/sys/miscfs/procfs/procfs_subr.c +++ b/sys/miscfs/procfs/procfs_subr.c @@ -36,7 +36,7 @@ * * @(#)procfs_subr.c 8.4 (Berkeley) 1/27/94 * - * $Id: procfs_subr.c,v 1.2 1994/08/02 07:45:21 davidg Exp $ + * $Id: procfs_subr.c,v 1.3 1994/10/06 21:06:44 davidg Exp $ */ #include <sys/param.h> @@ -144,7 +144,8 @@ loop: break; case Pmem: - pfs->pfs_mode = (VREAD|VWRITE); + pfs->pfs_mode = (VREAD|VWRITE) | + (VREAD) >> 3;; break; case Pregs: |