Bug 289044 - debugger user change
Summary: debugger user change
Status: RESOLVED DUPLICATE of bug 60165
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: 4.2.3
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 16:07 UTC by Chris Bruner
Modified: 2011-12-30 19:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Bruner 2011-12-15 16:07:17 UTC
Version:           unspecified
OS:                Linux

 Debugging web cgi's have been a problem for me with newer kernels, as apache
runs as root or someone not me, and gdb can no longer access it. 
Wish is to debug under root, by detecting ptrace error, and asking for root
password. If password was already available (from previous session) then
using it automagically. Currently I need to run the whole system as root to
debug, which is not as good.

Reproducible: Didn't try



Expected Results:  
wish fulfilled :)
Comment 1 Niko Sams 2011-12-17 19:04:34 UTC
Do you attach to a process, or do you start a program from inside kdevelop?
Comment 2 Chris Bruner 2011-12-18 05:20:21 UTC
This is definitely attach to process. Obviously if you start the process you would be allowed to debug it. The problem occurs when you attach to a process not yours. It would be good to be able to sign in as that process owner, or as root in order to debug it. This security feature was recently added in Linux kernels to stop crackers from attacking to root processes and thereby gaining control of a computer.  It's a good idea, except sometimes it isn't a good idea, like when you want to debug the program.
Comment 3 Niko Sams 2011-12-30 19:01:50 UTC

*** This bug has been marked as a duplicate of bug 60165 ***