Convert perm setting to push/pop model; still needs some work

Use the stashed runas groups instead of using getgrouplist()
Reset perms to the initial value on error
This commit is contained in:
Todd C. Miller
2010-04-20 17:00:31 -04:00
parent ab00ce995b
commit 1bb9f62143
5 changed files with 731 additions and 373 deletions

View File

@@ -236,8 +236,9 @@ int sudo_file_display_cmnd(struct sudo_nss *, struct passwd *);
int sudo_file_display_defaults(struct sudo_nss *, struct passwd *, struct lbuf *);
int sudo_file_display_bound_defaults(struct sudo_nss *, struct passwd *, struct lbuf *);
int sudo_file_display_privs(struct sudo_nss *, struct passwd *, struct lbuf *);
void rewind_perms(void);
int set_perms(int);
int restore_perms(void);
void restore_perms(void);
void remove_timestamp(int);
int check_secureware(char *);
void sia_attempt_auth(void);