[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
user/3713: Misleading error message from procmap
- To: gnats@openbsd.org
- Subject: user/3713: Misleading error message from procmap
- From: andre@ae-35.com
- Date: Sun, 14 Mar 2004 13:49:56 GMT
- Resent-Date: Sun, 14 Mar 2004 07:05:03 -0700 (MST)
- Resent-From: gnats@cvs.openbsd.org (GNATS Filer)
- Resent-Message-Id: <200403141405.i2EE53v7017783@cvs.openbsd.org>
- Resent-Reply-To: gnats@cvs.openbsd.org, andre@ae-35.com
- Resent-To: bugs@cvs.openbsd.org
>Number: 3713
>Category: user
>Synopsis: Misleading error message from procmap
>Confidential: yes
>Severity: non-critical
>Priority: low
>Responsible: bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 14 14:00:01 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Andre Lucas
>Release: -current
>Organization:
net
>Environment:
System : OpenBSD-current
Architecture: any
>Description:
When procmap is run as a non-root user, it disallows access to
other users' processes, but says that "other process's maps are
restricted." It should say something like "other users' process
maps are restricted"
>How-To-Repeat:
$ procmap 1
procmap: other process's maps are restricted
>Fix:
Index: src/usr.sbin/procmap/procmap.c
===================================================================
RCS file: /s/openbsd-rep/src/usr.sbin/procmap/procmap.c,v
retrieving revision 1.14
diff -u -r1.14 procmap.c
--- src/usr.sbin/procmap/procmap.c 23 Feb 2004 21:01:22 -0000 1.14
+++ src/usr.sbin/procmap/procmap.c 14 Mar 2004 11:56:43 -0000
@@ -350,7 +350,7 @@
return;
}
if (uid != proc->kp_eproc.e_ucred.cr_uid) {
- warnx("other process's maps are restricted");
+ warnx("other users' process maps are restricted");
return;
}
}
>Release-Note:
>Audit-Trail:
>Unformatted: