mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Damian M Gryski <dgryski@uwaterloo.ca>
To: Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: 2.4.16 + strace 4.4 + setuid programs
Date: Thu, 6 Dec 2001 01:52:53 -0500	[thread overview]
Message-ID: <20011206065253.GA1295@dmgware.dhs.org> (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>

On Thu, 06 Dec 2001, 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.

   Seems to me it drops permissions instead of not allowing the trace.

--- 8< --- cut here --- 8< ---
dmg@jolt:[pts/4]:~$ cat euid.c
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>

int main() { printf("euid=%d\n", geteuid()); }

dmg@jolt:[pts/4]:~$ ls -l ./euid
-rwsr-sr-x    1 root     root         5039 Dec  6 01:46 ./euid
dmg@jolt:[pts/4]:~$ ./euid
euid=0
dmg@jolt:[pts/4]:~$ strace -o /dev/null ./euid
euid=1000
dmg@jolt:[pts/4]:~$
--- 8< --- cut here --- 8< ---

   Damian

-- 
Damian Gryski ==> dgryski@uwaterloo.ca | Linux, the choice of a GNU generation
512 pt Hacker Test score = 37%         | 500 pt Nerd Test score = 56% 
                   geek / linux zealot / coder / juggler

       reply	other threads:[~2001-12-06  6:53 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 [this message]
2001-12-06 15:56 ` Jason Kohles
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=20011206065253.GA1295@dmgware.dhs.org \
    --to=dgryski@uwaterloo.ca \
    --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®