NetBSD Problem Report #12741
Received: (qmail 9287 invoked from network); 24 Apr 2001 17:31:38 -0000
Message-Id: <20010424173205.192421110F@www.netbsd.org>
Date: Tue, 24 Apr 2001 10:32:05 -0700 (PDT)
From: Anne Bennett <anne@alcor.concordia.ca>
Reply-To: anne@alcor.concordia.ca
To: gnats-bugs@gnats.netbsd.org
Subject: lsof by default allows any user to list the files of any other user
X-Send-Pr-Version: www-1.0
>Number: 12741
>Category: pkg
>Synopsis: lsof by default allows any user to list the files of any other user
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: agc
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 24 17:32:00 +0000 2001
>Closed-Date: Mon Apr 30 14:41:16 +0000 2001
>Last-Modified: Wed Jun 06 02:20:48 +0000 2001
>Originator:
>Release: 1.5
>Organization:
Concordia University
>Environment:
NetBSD eridani.concordia.ca 1.5 NetBSD 1.5 (ERIDANI) #1: Tue Mar 20 15:48:34 EST 2001 anne@eridani.concordia.ca:/big/sources/usr/src/sys/arch/i386/compile/ERIDANI i386
>Description:
lsof lists any set of open files without checking first that
the caller is root; ordinary users should be able to list only
their own open files. The ability of an ordinary user to list
the files of any other user, including root, could be a security
risk by revealing information that should be private.
>How-To-Repeat:
run lsof as a non-privileged user.
>Fix:
Edit dialects/n+obsd/machine.h to decomment the definition
of HASSECURITY.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: agc
State-Changed-When: Mon Apr 30 07:39:38 PDT 2001
State-Changed-Why:
agc added another mk.conf definition to set the definition
of HASSECURITY in the referenced file. mk.conf definition
name is LSOF_MORE_SECURE.
Thanks for the PR.
Responsible-Changed-From-To: pkg-manager->agc
Responsible-Changed-By: agc
Responsible-Changed-When: Mon Apr 30 07:39:38 PDT 2001
Responsible-Changed-Why:
agc took responsibility for this one
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.