mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-01 14:55:12 +00:00
match_command: apply runchroot if set when matching the command
Previously we would prepend runchroot to the path we were checking but that does not properly handle symbolic links.
This commit is contained in:
@@ -394,7 +394,7 @@ bool addr_matches(char *n);
|
||||
bool command_matches(const char *sudoers_cmnd, const char *sudoers_args, const char *runchroot, struct cmnd_info *info, const struct command_digest_list *digests);
|
||||
|
||||
/* match_digest.c */
|
||||
bool digest_matches(int fd, const char *path, const char *runchroot, const struct command_digest_list *digests);
|
||||
bool digest_matches(int fd, const char *path, const struct command_digest_list *digests);
|
||||
|
||||
/* match.c */
|
||||
struct group;
|
||||
|
Reference in New Issue
Block a user