Bug 22711

Summary: [PATCH] non-root users can't debug
Product: Base System Reporter: brooks <brooks>
Component: kernAssignee: Robert Watson <rwatson>
Status: Closed FIXED    
Severity: Affects Only Me CC: rwatson
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description brooks 2000-11-09 07:20:01 UTC
Attempting to run gdb on a process fails.  It seems that due to a small
bug, sys/kern/kern_prot.c rev 1.66 tightened things up a little bit too
far.

Fix: Apply this patch.
How-To-Repeat: 
while not root:

$ gdb <any program>
...
(gdb) run
Comment 1 brooks 2000-11-09 07:23:33 UTC
On Wed, Nov 08, 2000 at 11:17:17PM -0800, brooks@one-eyed-alien.net wrote:
> Attempting to run gdb on a process fails.  It seems that due to a small
> bug, sys/kern/kern_prot.c rev 1.66 tightened things up a little bit too
> far.

s/proscess/program/

I suspect what I said is true, but it wasn't the problem I encountered.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
Comment 2 Robert Watson freebsd_committer freebsd_triage 2000-11-10 23:52:26 UTC
Responsible Changed
From-To: freebsd-bugs->rwatson

That's my bug.  I mis-transcribed sef's change when porting it forwards from -STABLE
Comment 3 Robert Watson freebsd_committer freebsd_triage 2000-12-17 21:31:39 UTC
State Changed
From-To: open->closed

Fix committed on November 10, 2000: 

rwatson     2000/11/10 15:57:48 PST 

Modified files: 
sys/kern             kern_prot.c  
Log: 
o Fix a mis-transcription of sef's -STABLE protection fixes--only root 
could debug processes after the commit that introduced the typo. 
Security is good, but security is not always the same as turning things 
off :-). 

PR:           kern/22711 
Obtained from:        brooks@one-eyed-alien.net 

Revision  Changes    Path 
1.67      +2 -2      src/sys/kern/kern_prot.c