diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-08 22:14:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-08 22:14:38 +0000 |
commit | c42d3dfc6a3f99fbbe1a0c87af2f3705ea3ce262 (patch) | |
tree | b2801e83b20e253f4a46ba0d4341d06e3695199c /usr.bin/ipcs/ipcs.c | |
parent | 5d7745af6274ad1c61f601a05048c86ed26cf8a9 (diff) |
whack kmem gid after kvm_openfiles()
Diffstat (limited to 'usr.bin/ipcs/ipcs.c')
-rw-r--r-- | usr.bin/ipcs/ipcs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index 8882cece4bd..2f2379e4782 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipcs.c,v 1.7 1997/01/15 23:42:37 millert Exp $ */ +/* $OpenBSD: ipcs.c,v 1.8 1998/07/08 22:14:13 deraadt Exp $ */ /* $NetBSD: ipcs.c,v 1.10.6.1 1996/06/07 01:53:47 thorpej Exp $ */ /* @@ -199,6 +199,9 @@ main(argc, argv) if ((kd = kvm_open(namelist, core, NULL, O_RDONLY, "ipcs")) == NULL) exit(1); + setegid(getgid()); + setgid(getgid()); + switch (kvm_nlist(kd, symbols)) { case 0: break; |