mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-05 00:35:14 +00:00
set_cmnd_path: apply runchroot if set when finding the command path
Previously we would prepend runchroot to the path we were checking but that does not properly handle symbolic links.
This commit is contained in:
@@ -799,8 +799,7 @@ display_privs(struct sudo_nss_list *snl, struct passwd *pw, bool verbose)
|
||||
/* STUB */
|
||||
int
|
||||
find_path(const char *infile, char **outfile, struct stat *sbp,
|
||||
const char *path, const char *runchroot, int ignore_dot,
|
||||
char * const *allowlist)
|
||||
const char *path, int ignore_dot, char * const *allowlist)
|
||||
{
|
||||
switch (pass) {
|
||||
case PASS_CHECK_NOT_FOUND:
|
||||
|
Reference in New Issue
Block a user