Todd C. Miller
|
7788581473
|
Rename run_cred -> cur_cred and stash existing creds in set_tmpdir().
For sudo_edit_open() et al what we need is a copy of the current
cred to restore after dir_is_writable() changes to the user cred.
|
2021-01-06 13:01:09 -07:00 |
|
Todd C. Miller
|
ece5adc662
|
Add struct sudo_cred to hold the invoking or runas user credentials.
We can use this when we need to pass around credential info instead
of the user_details and command_details structs.
|
2021-01-06 13:01:09 -07:00 |
|
Todd C. Miller
|
46e2d7290a
|
Add directory writability checks for SELinux RBAC sudoedit.
These were never added to the SELinux RBAC path.
|
2021-01-06 13:01:09 -07:00 |
|
Todd C. Miller
|
a5be62c68f
|
Move safe open code out of sudo_edit.c and into edit_open.c.
|
2021-01-06 13:01:09 -07:00 |
|