2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Run most of the code as root, not the invoking user. It doesn't really

gain us anything to run as the user since an attacker can just have
an setuid(0) in their egg.  Running as root solves potential problems
wrt signalling.
This commit is contained in:
Todd C. Miller
1999-08-20 20:37:16 +00:00
parent bc65b24ed3
commit 275c2fc980
9 changed files with 61 additions and 94 deletions

View File

@@ -112,7 +112,6 @@ find_path(infile, outfile)
path = estrdup(path);
origpath = path;
/* XXX use strtok() */
do {
if ((n = strchr(path, ':')))
*n = '\0';