Refactor the sudoedit code to copy files so it can be shared.

The SELinux sudoedit code now extends the destination file the
same way the non-SELinux version does.
This commit is contained in:
Todd C. Miller
2020-04-21 11:05:32 -06:00
parent 0bd39701b4
commit 009876bf36
6 changed files with 193 additions and 119 deletions

View File

@@ -84,6 +84,9 @@
struct command_details;
struct command_status;
/* copy_file.c */
int sudo_copy_file(const char *src, int src_fd, off_t src_len, const char *dst, int dst_fd, off_t dst_len);
/* exec.c */
void exec_cmnd(struct command_details *details, int errfd);
void terminate_command(pid_t pid, bool use_pgrp);