Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Problems Launching programs in LADEBUG
@ 2000-12-19 22:16 rslyon
  2000-12-20  1:53 ` Bevin R Brett
  2000-12-20  1:56 ` Bevin R Brett
  0 siblings, 2 replies; 7+ messages in thread
From: rslyon @ 2000-12-19 22:16 UTC (permalink / raw)


The newest version of labebug (.64) is great..  Except we are having
this ongoing problem, and haven't thought of a way past it yet..

When we try to launch a program in ladebug it gives the error(s):

object file name: ./ts
Reading symbolic information ...done
Error: could not start debuggee
Could not start process for ./ts
No image loaded ... Recovering ...

I have a feeling its do to after we compile an executable, we change
the owner, and set modes gu+s (so it is run as an alternate user with
their user and group id)..  When I reversed this, and ran it in
ladebug, it ran OK..

Is this a bug, or is there anyway to get around this?  It is important
for us to keep gu+s on..



Richard


Sent via Deja.com
http://www.deja.com/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems Launching programs in LADEBUG
  2000-12-19 22:16 Problems Launching programs in LADEBUG rslyon
@ 2000-12-20  1:53 ` Bevin R Brett
  2000-12-20  2:03   ` Andrew Duane USG
  2000-12-20  1:56 ` Bevin R Brett
  1 sibling, 1 reply; 7+ messages in thread
From: Bevin R Brett @ 2000-12-20  1:53 UTC (permalink / raw)


Richard also sent this to ladebugsupport@compaq.com, where we (the ladebug
team) are officially looking into it.

At first blush, I think we are looking at a security issue - allowing you
to debug a +s program is probably a security hole, so the o/s is not
allowing ladebug to control the process either with /proc or ptrace

/Bevin
Compaq ladebug team

ps: He would have gotten this version of ladebug this week from the
www.compaq.com/ladebug website where you can download a version for either
Alpha Tru64 v4.0d or later, Alpha Tru64 v5.0 or later, or Alpha Linux

rslyon@my-deja.com wrote:

> The newest version of labebug (.64) is great..  Except we are having
> this ongoing problem, and haven't thought of a way past it yet..
>
> When we try to launch a program in ladebug it gives the error(s):
>
> object file name: ./ts
> Reading symbolic information ...done
> Error: could not start debuggee
> Could not start process for ./ts
> No image loaded ... Recovering ...
>
> I have a feeling its do to after we compile an executable, we change
> the owner, and set modes gu+s (so it is run as an alternate user with
> their user and group id)..  When I reversed this, and ran it in
> ladebug, it ran OK..
>
> Is this a bug, or is there anyway to get around this?  It is important
> for us to keep gu+s on..
>
> Richard
>
> Sent via Deja.com
> http://www.deja.com/



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems Launching programs in LADEBUG
  2000-12-19 22:16 Problems Launching programs in LADEBUG rslyon
  2000-12-20  1:53 ` Bevin R Brett
@ 2000-12-20  1:56 ` Bevin R Brett
  2000-12-20  4:21   ` rslyon
  2000-12-20 21:26   ` Andrew Duane USG
  1 sibling, 2 replies; 7+ messages in thread
From: Bevin R Brett @ 2000-12-20  1:56 UTC (permalink / raw)


pps:  I would not be surprised if running Ladebug as root worked around
this, but haven't checked it yet


rslyon@my-deja.com wrote:

> The newest version of labebug (.64) is great..  Except we are having
> this ongoing problem, and haven't thought of a way past it yet..
>
> When we try to launch a program in ladebug it gives the error(s):
>
> object file name: ./ts
> Reading symbolic information ...done
> Error: could not start debuggee
> Could not start process for ./ts
> No image loaded ... Recovering ...
>
> I have a feeling its do to after we compile an executable, we change
> the owner, and set modes gu+s (so it is run as an alternate user with
> their user and group id)..  When I reversed this, and ran it in
> ladebug, it ran OK..
>
> Is this a bug, or is there anyway to get around this?  It is important
> for us to keep gu+s on..
>
> Richard
>
> Sent via Deja.com
> http://www.deja.com/



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems Launching programs in LADEBUG
  2000-12-20  1:53 ` Bevin R Brett
@ 2000-12-20  2:03   ` Andrew Duane USG
  2000-12-20  4:17     ` rslyon
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Duane USG @ 2000-12-20  2:03 UTC (permalink / raw)


This is in fact a known "security" issue with the /proc filesystem,
that prevents ladebug or dbx from working on setuid programs.

We are working on improving it, once we can sort out the security
ramifications of being able to use a debugger on a setuid program.

Is the program setuid to yourself? or someone else?

In article <3A401116.D1ECD373@compaq.com> Bevin R Brett <bevin.brett@compaq.com> writes:
>At first blush, I think we are looking at a security issue - allowing you
>to debug a +s program is probably a security hole, so the o/s is not
>allowing ladebug to control the process either with /proc or ptrace
>
>/Bevin
>Compaq ladebug team
>
>rslyon@my-deja.com wrote:
>> The newest version of labebug (.64) is great..  Except we are having
>> this ongoing problem, and haven't thought of a way past it yet..
>> When we try to launch a program in ladebug it gives the error(s):
>>
>> object file name: ./ts
>> Reading symbolic information ...done
>> Error: could not start debuggee
>> Could not start process for ./ts
>> No image loaded ... Recovering ...
>>
>> I have a feeling its do to after we compile an executable, we change
>> the owner, and set modes gu+s (so it is run as an alternate user with
>> their user and group id)..  When I reversed this, and ran it in
>> ladebug, it ran OK..
>>
>> Is this a bug, or is there anyway to get around this?  It is important
>> for us to keep gu+s on..

--

Andrew L. Duane (JOT-7)			duane@zk3.dec.com
Compaq Computer Corporation		(603)-884-1294
110 Spit Brook Road
M/S ZKO3-3/U14
Nashua, NH    03062-2698



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems Launching programs in LADEBUG
  2000-12-20  2:03   ` Andrew Duane USG
@ 2000-12-20  4:17     ` rslyon
  0 siblings, 0 replies; 7+ messages in thread
From: rslyon @ 2000-12-20  4:17 UTC (permalink / raw)


It's set to someone else..  (i.e. the project owner)

It also caused problems with shared libraries on execution (which is
expected)..  We ended up using -rpath with the linker so we could
actually run an oracle app   (Oracle on osf51's main link object is
shared, unlike others where it's static)..

Is there a temp workaround that we can use (and still acheive the same
result?)  We have a deadline coming fast..


Richard



In article <91p40v$86ns$1@lead.zk3.dec.com>,
  duane@magma.uucp (Andrew Duane USG) wrote:
> This is in fact a known "security" issue with the /proc filesystem,
> that prevents ladebug or dbx from working on setuid programs.
>
> We are working on improving it, once we can sort out the security
> ramifications of being able to use a debugger on a setuid program.
>
> Is the program setuid to yourself? or someone else?
>
> In article <3A401116.D1ECD373@compaq.com> Bevin R Brett
<bevin.brett@compaq.com> writes:
> >At first blush, I think we are looking at a security issue -
allowing you
> >to debug a +s program is probably a security hole, so the o/s is not
> >allowing ladebug to control the process either with /proc or ptrace
> >
> >/Bevin
> >Compaq ladebug team
> >
> >rslyon@my-deja.com wrote:
> >> The newest version of labebug (.64) is great..  Except we are
having
> >> this ongoing problem, and haven't thought of a way past it yet..
> >> When we try to launch a program in ladebug it gives the error(s):
> >>
> >> object file name: ./ts
> >> Reading symbolic information ...done
> >> Error: could not start debuggee
> >> Could not start process for ./ts
> >> No image loaded ... Recovering ...
> >>
> >> I have a feeling its do to after we compile an executable, we
change
> >> the owner, and set modes gu+s (so it is run as an alternate user
with
> >> their user and group id)..  When I reversed this, and ran it in
> >> ladebug, it ran OK..
> >>
> >> Is this a bug, or is there anyway to get around this?  It is
important
> >> for us to keep gu+s on..
>
> --
>
> Andrew L. Duane (JOT-7)			duane@zk3.dec.com
> Compaq Computer Corporation		(603)-884-1294
> 110 Spit Brook Road
> M/S ZKO3-3/U14
> Nashua, NH    03062-2698
>
>


Sent via Deja.com
http://www.deja.com/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems Launching programs in LADEBUG
  2000-12-20  1:56 ` Bevin R Brett
@ 2000-12-20  4:21   ` rslyon
  2000-12-20 21:26   ` Andrew Duane USG
  1 sibling, 0 replies; 7+ messages in thread
From: rslyon @ 2000-12-20  4:21 UTC (permalink / raw)




Tried it as root, had same effect as file owner (which was 'no such
luck'...  If it had have worked in root I probably wouldn't have posted
the question..

Richard


In article <3A4011E4.1236EFE3@compaq.com>,
  Bevin R Brett <bevin.brett@compaq.com> wrote:
> pps:  I would not be surprised if running Ladebug as root worked
around
> this, but haven't checked it yet
>
> rslyon@my-deja.com wrote:
>
> > The newest version of labebug (.64) is great..  Except we are having
> > this ongoing problem, and haven't thought of a way past it yet..
> >
> > When we try to launch a program in ladebug it gives the error(s):
> >
> > object file name: ./ts
> > Reading symbolic information ...done
> > Error: could not start debuggee
> > Could not start process for ./ts
> > No image loaded ... Recovering ...
> >
> > I have a feeling its do to after we compile an executable, we change
> > the owner, and set modes gu+s (so it is run as an alternate user
with
> > their user and group id)..  When I reversed this, and ran it in
> > ladebug, it ran OK..
> >
> > Is this a bug, or is there anyway to get around this?  It is
important
> > for us to keep gu+s on..
> >
> > Richard
> >
> > Sent via Deja.com
> > http://www.deja.com/
>
>


Sent via Deja.com
http://www.deja.com/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problems Launching programs in LADEBUG
  2000-12-20  1:56 ` Bevin R Brett
  2000-12-20  4:21   ` rslyon
@ 2000-12-20 21:26   ` Andrew Duane USG
  1 sibling, 0 replies; 7+ messages in thread
From: Andrew Duane USG @ 2000-12-20 21:26 UTC (permalink / raw)


In article <3A4011E4.1236EFE3@compaq.com> Bevin R Brett <bevin.brett@compaq.com> writes:
>pps:  I would not be surprised if running Ladebug as root worked around
>this, but haven't checked it yet

It won't. It's not a permissions problem, it's a specific check
for setuid programs.

--

Andrew L. Duane (JOT-7)			duane@zk3.dec.com
Compaq Computer Corporation		(603)-884-1294
110 Spit Brook Road
M/S ZKO3-3/U14
Nashua, NH    03062-2698



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-12-20 21:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-19 22:16 Problems Launching programs in LADEBUG rslyon
2000-12-20  1:53 ` Bevin R Brett
2000-12-20  2:03   ` Andrew Duane USG
2000-12-20  4:17     ` rslyon
2000-12-20  1:56 ` Bevin R Brett
2000-12-20  4:21   ` rslyon
2000-12-20 21:26   ` Andrew Duane USG

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox