For PERM_ROOT set egid to 0 so log files are not created with

the gid of the user.
This commit is contained in:
Todd C. Miller
2012-11-12 15:20:10 -05:00
parent 02aa965a2d
commit cab6b976dc
2 changed files with 47 additions and 9 deletions

View File

@@ -202,10 +202,11 @@ struct sudo_user {
#define runas_limitprivs (sudo_user.limitprivs)
#ifdef __TANDEM
# define ROOT_UID 65535
# define ROOT_UID 65535
#else
# define ROOT_UID 0
# define ROOT_UID 0
#endif
#define ROOT_GID 0
/*
* We used to use the system definition of PASS_MAX or _PASSWD_LEN,