NetBSD Problem Report #519
From gnats Mon Oct 17 05:37:34 1994
Received: from bloom-beacon.mit.edu (BLOOM-BEACON.MIT.EDU [18.181.0.26]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with SMTP id FAA20084 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Mon, 17 Oct 1994 05:37:34 -0700
Message-Id: <199410171209.IAA02918@kolvir.blrc.ma.us>
Date: Mon, 17 Oct 1994 08:09:19 -0400
From: John Kohl <jtk@kolvir.blrc.ma.us>
Reply-To: jtk@kolvir.blrc.ma.us
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: /etc/security find command barfs on fdesc file system
X-Send-Pr-Version: 3.2
>Number: 519
>Category: bin
>Synopsis: /etc/security doesn't avoid fdesc file system, so find fails
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 17 05:50:02 +0000 1994
>Closed-Date: Tue Oct 18 20:40:27 +0000 1994
>Last-Modified: Wed Jan 06 10:25:44 +0000 1999
>Originator: John Kohl
>Release: 1.0_BETA
>Organization:
>Environment:
System: NetBSD kolvir 1.0_BETA NetBSD 1.0_BETA (KOLVIR) #51: Fri Oct 14 19:03:36 EDT 1994 jtk@kolvir:/u1/NetBSD-1.0/src/sys/arch/i386/compile/KOLVIR i386
>Description:
/etc/security runs a 'find' command to find all the setuid programs on
the disk. This find command fails to avoid the 'fdesc' file system, and it
thus fails.
It also includes stuff in /proc, which really is not appropriate since
it will cause the script to find differences in *running programs* with
setuid bits!
>How-To-Repeat:
Mount the fdesc file system. Then run the /etc/security script.
>Fix:
Apply this patch to the script:
*** 1.9 1994/06/15 04:28:20
--- security 1994/10/17 12:08:18
***************
*** 346,352 ****
# Display any changes in setuid files and devices.
printf "\nChecking setuid files and devices:\n"
! (find / ! -fstype local -a -prune -o \
\( -perm -u+s -o -perm -g+s -o ! -type d -a ! -type f -a ! -type l -a \
! -type s \) | \
sort | sed -e 's/^/ls -ldgT /' | sh > $LIST) 2> $OUTPUT
--- 346,353 ----
# Display any changes in setuid files and devices.
printf "\nChecking setuid files and devices:\n"
! (find / ! \( -fstype local -o -fstype fdesc -o -fstype kernfs -o \
! -fstype procfs \) -a -prune -o \
\( -perm -u+s -o -perm -g+s -o ! -type d -a ! -type f -a ! -type l -a \
! -type s \) | \
sort | sed -e 's/^/ls -ldgT /' | sh > $LIST) 2> $OUTPUT
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Tue Oct 18 13:40:27 PDT 1994
State-Changed-Why:
Fixed.
>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.