Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 13 Feb 2015 06:28:37 -0700
From: "Todd C. Miller" <>
Subject: Re: Re: CVE request: sudo TZ issue

On Fri, 13 Feb 2015 02:05:05 -0500, Rich Felker wrote:

> Why does sudo run the target program with both effective and real ids
> set to root? Why not run with only the effective uid set to root? Then
> the program would know that it's being run by an unprivileged user
> with elevated privileges (and its libc would restrict or ignore
> environment variables for internal libc use). Does such invocation
> break too many programs?

Unfortunately running setuid can result in undesirable behavior
with some programs, especially those that are already setuid.  For
example, things like "sudo passwd" or "sudo crontab" would no longer

Sudo does have a "stay_setuid" setting that will run programs with
the user's real uid but it is not widely used.

 - todd

Powered by blists - more mailing lists

Your e-mail address:

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Powered by Openwall GNU/*/Linux - Powered by OpenVZ