mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jason Kohles <jkohles@redhat.com>
To: Keith Warno <krjw@optonline.net>
Cc: Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: 2.4.16 + strace 4.4 + setuid programs
Date: Thu, 6 Dec 2001 09:56:04 -0600	[thread overview]
Message-ID: <20011206095604.B1975@traveller.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.40.0112060104140.32509-100000@behemoth.hobitch.com>
In-Reply-To: <Pine.LNX.4.40.0112060104140.32509-100000@behemoth.hobitch.com>; from krjw@optonline.net on Thu, Dec 06, 2001 at 01:09:02AM -0500

On Thu, Dec 06, 2001 at 01:09:02AM -0500, Keith Warno wrote:
> Hmm.  Is strace supposed to be capable of tracing setuid programs (ie,
> su) when executed by mortal users?  I always thought this was a big
> no-no.
> 
You can trace them, but strace will ignore the setuid bit on the process,
for example if you strace su, you will see a lot of permission denied, as
it won't actually run as root, and won't be able to open things like
/etc/shadow or /proc/self/fd/0.  If you want to strace setuid things and
have the setuid bit honored, you have to run strace as root with the -u
option.

-- 
Jason Kohles                                 jkohles@redhat.com
Senior System Architect                      (703)786-8036 (cellular)
Red Hat Professional Consulting              (703)456-2940 (office)

  parent reply	other threads:[~2001-12-06 15:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.40.0112060104140.32509-100000@behemoth.hobitch.com>
2001-12-06  6:52 ` Damian M Gryski
2001-12-06 15:56 ` Jason Kohles [this message]
2001-12-06 17:25 Manfred Spraul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011206095604.B1975@traveller.localdomain \
    --to=jkohles@redhat.com \
    --cc=krjw@optonline.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®