version 1.2, 2002/01/14 00:11:44 |
version 1.3, 2002/01/16 18:09:13 |
|
|
#include "sudo.h" |
#include "sudo.h" |
|
|
#ifndef lint |
#ifndef lint |
static const char rcsid[] = "$Sudo: set_perms.c,v 1.9 2002/01/13 18:28:09 millert Exp $"; |
static const char rcsid[] = "$Sudo: set_perms.c,v 1.10 2002/01/15 22:47:29 millert Exp $"; |
#endif /* lint */ |
#endif /* lint */ |
|
|
/* |
/* |
|
|
static void runas_setup __P((void)); |
static void runas_setup __P((void)); |
static void fatal __P((char *)); |
static void fatal __P((char *)); |
|
|
#if defined(_SC_SAVED_IDS) && defined(_SC_VERSION) |
#if !defined(NO_SAVED_IDS) && defined(_SC_SAVED_IDS) && defined(_SC_VERSION) |
/* |
/* |
* Set real and effective uids and gids based on perm. |
* Set real and effective uids and gids based on perm. |
* Since we have POSIX saved IDs we can get away with just |
* Since we have POSIX saved IDs we can get away with just |
|
|
break; |
break; |
} |
} |
} |
} |
#endif /* _SC_SAVED_IDS && _SC_VERSION */ |
#endif /* !NO_SAVED_IDS && _SC_SAVED_IDS && _SC_VERSION */ |
|
|
#ifdef HAVE_SETREUID |
#ifdef HAVE_SETREUID |
/* |
/* |