From owner-freebsd-hackers Wed Jun 27 1:29:30 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 98A7B37B401; Wed, 27 Jun 2001 01:29:28 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id 47C933E31; Wed, 27 Jun 2001 01:29:28 -0700 (PDT) To: ru@FreeBSD.org, hackers@FreeBSD.ORG Subject: Re: ifmcstat(8) setgidness In-Reply-To: <20010627111440.F2097@sunbay.com>; from ru@FreeBSD.ORG on "Wed, 27 Jun 2001 11:14:40 +0300" Date: Wed, 27 Jun 2001 01:29:28 -0700 From: Dima Dorfman Message-Id: <20010627082928.47C933E31@bazooka.unixfreak.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ruslan Ermilov writes: > On Tue, Jun 26, 2001 at 03:04:07PM -0700, Dima Dorfman wrote: > > Hi folks, > > > > Is there a particular reason, other than the desire for more setgid > > programs, that ifmcstat(8) is setgid kmem? It seems that there's no > > reason anyone but root would want to use it, anyway. OpenBSD and > > NetBSD already nuked its setgid bit; any reason why we shouldn't > > follow suit? > > > $ ifmcstat > kvm_openfiles: Permission denied I don't follow. Yes, it needs access to kmem to work. However, I don't see why anyone other than root would need to run it, so why is it setgid? root can access kmem either way. > > -- > Ruslan Ermilov Oracle Developer/DBA, > ru@sunbay.com Sunbay Software AG, > ru@FreeBSD.org FreeBSD committer, > +380.652.512.251 Simferopol, Ukraine > > http://www.FreeBSD.org The Power To Serve > http://www.oracle.com Enabling The Information Age > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message