Revamp set_perms. We now use a version based on setresuid() or setreuid()
when possible since that allows us to support the stay_setuid option and we always know exactly what the semantics will be (various Linux kernels have broken POSIX saved uid support).
This commit is contained in:
5
sudo.h
5
sudo.h
@@ -202,8 +202,9 @@ int find_path __P((char *, char **, char *));
|
||||
void check_user __P((void));
|
||||
void verify_user __P((struct passwd *, char *));
|
||||
int sudoers_lookup __P((int));
|
||||
void set_perms_nosuid __P((int));
|
||||
void set_perms_posix __P((int));
|
||||
void set_perms_fallback __P((int));
|
||||
void set_perms_suid __P((int));
|
||||
void remove_timestamp __P((int));
|
||||
int check_secureware __P((char *));
|
||||
void sia_attempt_auth __P((void));
|
||||
@@ -235,7 +236,7 @@ extern int Argc;
|
||||
extern char **Argv;
|
||||
extern FILE *sudoers_fp;
|
||||
extern int tgetpass_flags;
|
||||
extern int timestamp_uid;
|
||||
extern uid_t timestamp_uid;
|
||||
|
||||
extern void (*set_perms) __P((int));
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user